#[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 PolicyTermwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<RouteFilter>: Freeze,
PhantomData<CommunityAction>: Freeze,
impl Move for PolicyTerm
impl RefUnwindSafe for PolicyTerm
impl Send for PolicyTermwhere
RawVecInner: Send,
impl Sync for PolicyTermwhere
RawVecInner: Sync,
impl Unpin for PolicyTerm
impl UnsafeUnpin for PolicyTermwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<RouteFilter>: UnsafeUnpin,
PhantomData<CommunityAction>: UnsafeUnpin,
impl UnwindSafe for PolicyTermwhere
RawVecInner: UnwindSafe,
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