Struct cedar_policy_core::entities::EntityJSON
source · pub struct EntityJSON { /* private fields */ }
Expand description
Serde JSON format for a single entity
Implementations§
source§impl EntityJSON
impl EntityJSON
sourcepub fn from_entity(entity: &Entity) -> Result<Self, JsonSerializationError>
pub fn from_entity(entity: &Entity) -> Result<Self, JsonSerializationError>
Convert an Entity
into an EntityJSON
(for the reverse transformation, use EntityJsonParser
)
Trait Implementations§
source§impl Clone for EntityJSON
impl Clone for EntityJSON
source§fn clone(&self) -> EntityJSON
fn clone(&self) -> EntityJSON
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 EntityJSON
impl Debug for EntityJSON
source§impl<'de> Deserialize<'de> for EntityJSON
impl<'de> Deserialize<'de> for EntityJSON
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 PartialEq for EntityJSON
impl PartialEq for EntityJSON
source§impl Serialize for EntityJSON
impl Serialize for EntityJSON
impl Eq for EntityJSON
impl StructuralPartialEq for EntityJSON
Auto Trait Implementations§
impl Freeze for EntityJSON
impl RefUnwindSafe for EntityJSON
impl Send for EntityJSON
impl Sync for EntityJSON
impl Unpin for EntityJSON
impl UnwindSafe for EntityJSON
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