pub struct Action<T> {
pub account: AccountName,
pub name: ActionName,
pub authorization: Vec<PermissionLevel>,
pub data: T,
}
Expand description
This is the packed representation of an action along with meta-data about the authorization levels.
Fields§
§account: AccountName
Name of the account the action is intended for
name: ActionName
Name of the action
List of permissions that authorize this action
data: T
Payload data
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Action<T>where
T: Freeze,
impl<T> RefUnwindSafe for Action<T>where
T: RefUnwindSafe,
impl<T> Send for Action<T>where
T: Send,
impl<T> Sync for Action<T>where
T: Sync,
impl<T> Unpin for Action<T>where
T: Unpin,
impl<T> UnwindSafe for Action<T>where
T: 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