Struct cedar_policy_validator::ApplySpec
source · pub struct ApplySpec {
pub resource_types: Option<Vec<SmolStr>>,
pub principal_types: Option<Vec<SmolStr>>,
pub context: AttributesOrContext,
}
Expand description
The apply spec specifies what principals and resources an action can be used with. This specification can either be done through containing to entity types. The fields of this record are optional so that they can be omitted to declare that the apply spec for the principal or resource is undefined, meaning that the action can be applied to any principal or resource. This is different than providing an empty list because the empty list is interpreted as specifying that there are no principals or resources that an action applies to.
Fields§
§resource_types: Option<Vec<SmolStr>>
§principal_types: Option<Vec<SmolStr>>
§context: AttributesOrContext
Trait Implementations§
source§impl<'de> Deserialize<'de> for ApplySpec
impl<'de> Deserialize<'de> for ApplySpec
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 ApplySpec
impl PartialEq for ApplySpec
impl StructuralPartialEq for ApplySpec
Auto Trait Implementations§
impl RefUnwindSafe for ApplySpec
impl Send for ApplySpec
impl Sync for ApplySpec
impl Unpin for ApplySpec
impl UnwindSafe for ApplySpec
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