Struct cedar_policy_core::entities::NullSchema
source · pub struct NullSchema;
Expand description
Simple type that implements Schema
by expecting no attributes to exist
Trait Implementations§
source§impl Clone for NullSchema
impl Clone for NullSchema
source§fn clone(&self) -> NullSchema
fn clone(&self) -> NullSchema
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 NullSchema
impl Debug for NullSchema
source§impl Schema for NullSchema
impl Schema for NullSchema
source§fn attr_type(
&self,
_entity_type: &EntityType,
_attr: &str
) -> Option<SchemaType>
fn attr_type( &self, _entity_type: &EntityType, _attr: &str ) -> Option<SchemaType>
Do entities of the given type have the given attribute, and if so, what type? Read more
source§fn required_attrs(
&self,
_entity_type: &EntityType
) -> Box<dyn Iterator<Item = SmolStr>>
fn required_attrs( &self, _entity_type: &EntityType ) -> Box<dyn Iterator<Item = SmolStr>>
Get the names of all the required attributes for the given entity type.
Auto Trait Implementations§
impl RefUnwindSafe for NullSchema
impl Send for NullSchema
impl Sync for NullSchema
impl Unpin for NullSchema
impl UnwindSafe for NullSchema
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