Struct snapps_txn_reference_impl::account::Permissions[][src]

pub struct Permissions {
    pub edit_state: AuthorizationRequired,
    pub send: AuthorizationRequired,
    pub receive: AuthorizationRequired,
    pub set_delegate: AuthorizationRequired,
    pub set_permissions: AuthorizationRequired,
    pub set_verification_key: AuthorizationRequired,
    pub set_snapp_uri: AuthorizationRequired,
    pub add_sequence_events: AuthorizationRequired,
    pub increment_nonce: AuthorizationRequired,
}
Expand description

Permissions required for updates to the account.

Each update applied to the account by a snapp transaction corresponds to one of the fields of this record. The AuthorizationRequired value of the field determines which authorization kinds may accompany a transaction issuing that update.

Fields

edit_state: AuthorizationRequired

Authorization required to update the account’s snapp.app_state.

send: AuthorizationRequired

Authorization required to decrease the balance of this account.

receive: AuthorizationRequired

Authorization required to increase the balance of this account.

set_delegate: AuthorizationRequired

Authorization required to modify this account’s delegate.

set_permissions: AuthorizationRequired

Authorization required to modify this account’s permissions.

set_verification_key: AuthorizationRequired

Authorization required to modify this account’s snapp.verification_key.

set_snapp_uri: AuthorizationRequired

Authorization required to modify this account’s snapp.uri.

add_sequence_events: AuthorizationRequired

Authorization required to submit sequence events to this account.

increment_nonce: AuthorizationRequired

Authorization required to increment this account’s nonce.

Implementations

The default permissions. Sets every field of Permissions to AuthorizationRequired::Signature.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. 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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.