#[non_exhaustive]pub struct PolicyTerm {
pub name: Option<String>,
pub from: PolicyConditions,
pub to: PolicyConditions,
pub then: PolicyActions,
}Expand description
One term of a policy statement.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Option<String>None for the unnamed term, which is the only one in a policy written without term statements.
from: PolicyConditions§to: PolicyConditions§then: PolicyActionsTrait Implementations§
Source§impl Clone for PolicyTerm
impl Clone for PolicyTerm
Source§impl Debug for PolicyTerm
impl Debug for PolicyTerm
impl Eq for PolicyTerm
Source§impl PartialEq for PolicyTerm
impl PartialEq for PolicyTerm
impl StructuralPartialEq for PolicyTerm
Auto Trait Implementations§
impl Forget for PolicyTerm
impl Freeze for PolicyTerm
impl Move for PolicyTerm
impl RefUnwindSafe for PolicyTerm
impl Send for PolicyTerm
impl Sync for PolicyTerm
impl Unpin for PolicyTerm
impl UnsafeUnpin for PolicyTerm
impl UnwindSafe for PolicyTerm
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