pub struct AuthorityRequest<'a, 'b> {
    pub authority: &'a Pubkey,
    pub update_authority: &'b Pubkey,
    pub mint: &'a Pubkey,
    pub token: Option<&'a Pubkey>,
    pub token_account: Option<&'b Account>,
    pub metadata_delegate_record_info: Option<&'a AccountInfo<'a>>,
    pub metadata_delegate_role: Option<MetadataDelegateRole>,
    pub token_record_info: Option<&'a AccountInfo<'a>>,
    pub token_delegate_roles: Vec<TokenDelegateRole>,
}

Fields§

§authority: &'a Pubkey

Pubkey of the authority.

§update_authority: &'b Pubkey

Metadata’s update authority pubkey of the asset.

§mint: &'a Pubkey

Mint address.

§token: Option<&'a Pubkey>

Holder’s token account info.

§token_account: Option<&'b Account>

Holder’s token account.

§metadata_delegate_record_info: Option<&'a AccountInfo<'a>>

MetadataDelegateRecord account of the authority (when the authority is a delegate).

§metadata_delegate_role: Option<MetadataDelegateRole>

Expected MetadataDelegateRole for the request.

§token_record_info: Option<&'a AccountInfo<'a>>

TokenRecord account.

§token_delegate_roles: Vec<TokenDelegateRole>

Expected TokenDelegateRole for the request.

Trait Implementations§

Returns the “default value” for a type. 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 alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
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.