Struct scratchstack_aspen::Statement
source · [−]pub struct Statement { /* private fields */ }
Implementations
sourceimpl Statement
impl Statement
pub fn builder() -> StatementBuilder
pub fn sid(&self) -> Option<&str>
pub fn effect(&self) -> &Effect
pub fn action(&self) -> Option<&ActionList>
pub fn not_action(&self) -> Option<&ActionList>
pub fn resource(&self) -> Option<&ResourceList>
pub fn not_resource(&self) -> Option<&ResourceList>
pub fn principal(&self) -> Option<&Principal>
pub fn not_principal(&self) -> Option<&Principal>
pub fn condition(&self) -> Option<&Condition>
pub fn evaluate(
&self,
context: &Context,
pv: PolicyVersion
) -> Result<Decision, AspenError>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Statement
impl<'de> Deserialize<'de> for Statement
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Statement
impl StructuralEq for Statement
impl StructuralPartialEq for Statement
Auto Trait Implementations
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnwindSafe for Statement
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more