pub struct AuthorizedAction { /* private fields */ }Expand description
经 ActionLifecycle 审查通过、允许交给 adapter 执行的动作凭证。
- 字段私有,外部 crate 无法 struct-literal 构造。
- 不实现
Deserialize,防止反序列化伪造。 - 只暴露 getter,adapter 只能读取不能修改。
Implementations§
Source§impl AuthorizedAction
impl AuthorizedAction
pub fn intent_id(&self) -> &str
pub fn coord(&self) -> ActionCoord
pub fn action(&self) -> &SuggestedAction
pub fn effect(&self) -> EffectClass
Trait Implementations§
Source§impl Clone for AuthorizedAction
impl Clone for AuthorizedAction
Source§fn clone(&self) -> AuthorizedAction
fn clone(&self) -> AuthorizedAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthorizedAction
impl Debug for AuthorizedAction
Auto Trait Implementations§
impl Freeze for AuthorizedAction
impl RefUnwindSafe for AuthorizedAction
impl Send for AuthorizedAction
impl Sync for AuthorizedAction
impl Unpin for AuthorizedAction
impl UnsafeUnpin for AuthorizedAction
impl UnwindSafe for AuthorizedAction
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