pub struct ApprovalState {
    pub approved_by: Vec<AccountId>,
    pub created_at_nanoseconds: u64,
}
Expand description

Approval state for simple multisig

Fields§

§approved_by: Vec<AccountId>

List of accounts that have approved an action thus far

§created_at_nanoseconds: u64

Network timestamp when the request was created

Implementations§

Creates an ApprovalState with the current network timestamp

Trait Implementations§

Errors when approving a request
Errors when removing a request
Errors when authorizing an account
Errors when evaluating a request for execution candidacy
Has the request reached full approval?
Can this request be removed by an allowed account?
Is the account allowed to execute, approve, or remove this request?
Modify action_request.approval_state in-place to increase approval
Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes. Read more
Deserialize this instance from a slice of bytes.
Serialize this instance into a vector of bytes.
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.