pub struct Attributes {
pub operation: Option<Operation>,
pub stage: Option<Stage>,
pub outcome: Option<Outcome>,
pub failure: Option<Failure>,
pub limit: Option<Limit>,
}Expand description
Closed attribute set. Operation code cannot add arbitrary keys or values.
Fields§
§operation: Option<Operation>Finite operation class.
stage: Option<Stage>Finite lifecycle stage.
outcome: Option<Outcome>Finite outcome class.
failure: Option<Failure>Finite failure class.
limit: Option<Limit>Finite resource-limit class.
Implementations§
Source§impl Attributes
impl Attributes
Sourcepub const fn for_operation(operation: Operation) -> Self
pub const fn for_operation(operation: Operation) -> Self
Start an allowlisted attribute set for one operation.
Trait Implementations§
Source§impl Clone for Attributes
impl Clone for Attributes
impl Copy for Attributes
Source§impl Debug for Attributes
impl Debug for Attributes
Source§impl Default for Attributes
impl Default for Attributes
impl Eq for Attributes
Source§impl PartialEq for Attributes
impl PartialEq for Attributes
Source§impl Serialize for Attributes
impl Serialize for Attributes
impl StructuralPartialEq for Attributes
Auto Trait Implementations§
impl Freeze for Attributes
impl RefUnwindSafe for Attributes
impl Send for Attributes
impl Sync for Attributes
impl Unpin for Attributes
impl UnsafeUnpin for Attributes
impl UnwindSafe for Attributes
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