pub struct JsonRecord { /* private fields */ }
Expand description
Structure representing a Cedar record in JSON
Implementations§
Trait Implementations§
Source§impl Clone for JsonRecord
impl Clone for JsonRecord
Source§fn clone(&self) -> JsonRecord
fn clone(&self) -> JsonRecord
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for JsonRecord
impl Debug for JsonRecord
Source§impl<'de> Deserialize<'de> for JsonRecord
impl<'de> Deserialize<'de> for JsonRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromIterator<(SmolStr, CedarValueJson)> for JsonRecord
impl FromIterator<(SmolStr, CedarValueJson)> for JsonRecord
Source§fn from_iter<T: IntoIterator<Item = (SmolStr, CedarValueJson)>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = (SmolStr, CedarValueJson)>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl<'a> IntoIterator for &'a JsonRecord
impl<'a> IntoIterator for &'a JsonRecord
Source§type Item = (&'a SmolStr, &'a CedarValueJson)
type Item = (&'a SmolStr, &'a CedarValueJson)
The type of the elements being iterated over.
Source§type IntoIter = <&'a BTreeMap<SmolStr, CedarValueJson> as IntoIterator>::IntoIter
type IntoIter = <&'a BTreeMap<SmolStr, CedarValueJson> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
Source§impl IntoIterator for JsonRecord
impl IntoIterator for JsonRecord
Source§type Item = (SmolStr, CedarValueJson)
type Item = (SmolStr, CedarValueJson)
The type of the elements being iterated over.
Source§type IntoIter = <BTreeMap<SmolStr, CedarValueJson> as IntoIterator>::IntoIter
type IntoIter = <BTreeMap<SmolStr, CedarValueJson> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
Source§impl PartialEq for JsonRecord
impl PartialEq for JsonRecord
Source§impl Serialize for JsonRecord
impl Serialize for JsonRecord
impl Eq for JsonRecord
impl StructuralPartialEq for JsonRecord
Auto Trait Implementations§
impl Freeze for JsonRecord
impl RefUnwindSafe for JsonRecord
impl Send for JsonRecord
impl Sync for JsonRecord
impl Unpin for JsonRecord
impl UnwindSafe for JsonRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more