pub struct Intent { /* private fields */ }Expand description
Declared intent before execution.
Implementations§
Source§impl Intent
impl Intent
Sourcepub const fn new(
statement_id: StatementId,
subject: SubjectId,
action: OperationAction,
) -> Self
pub const fn new( statement_id: StatementId, subject: SubjectId, action: OperationAction, ) -> Self
Creates an intent body from required fields.
Sourcepub const fn kind(&self) -> StatementKind
pub const fn kind(&self) -> StatementKind
Returns this body kind.
Sourcepub const fn statement_id(&self) -> &StatementId
pub const fn statement_id(&self) -> &StatementId
Returns the statement identifier.
Sourcepub const fn action(&self) -> OperationAction
pub const fn action(&self) -> OperationAction
Returns the requested action.
Trait Implementations§
impl Eq for Intent
impl StructuralPartialEq for Intent
Auto Trait Implementations§
impl Freeze for Intent
impl RefUnwindSafe for Intent
impl Send for Intent
impl Sync for Intent
impl Unpin for Intent
impl UnsafeUnpin for Intent
impl UnwindSafe for Intent
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