Struct mpl_token_metadata::state::AuthorityRequest
source · pub struct AuthorityRequest<'a, 'b> {
pub precedence: &'a [AuthorityType],
pub authority: &'a Pubkey,
pub update_authority: &'b Pubkey,
pub mint: &'b Pubkey,
pub collection_mint: Option<&'b Pubkey>,
pub token: Option<&'a Pubkey>,
pub token_account: Option<&'b Account>,
pub metadata_delegate_record_info: Option<&'a AccountInfo<'a>>,
pub metadata_delegate_roles: Vec<MetadataDelegateRole>,
pub collection_metadata_delegate_roles: Vec<MetadataDelegateRole>,
pub token_record_info: Option<&'a AccountInfo<'a>>,
pub token_delegate_roles: Vec<TokenDelegateRole>,
}
Fields§
§precedence: &'a [AuthorityType]
Determines the precedence of authority types.
Pubkey of the authority.
Metadata’s update authority pubkey of the asset.
mint: &'b Pubkey
Mint address.
collection_mint: Option<&'b Pubkey>
Collection 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_roles: Vec<MetadataDelegateRole>
Expected MetadataDelegateRole
for the request.
collection_metadata_delegate_roles: Vec<MetadataDelegateRole>
Expected collection-level 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§
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for AuthorityRequest<'a, 'b>
impl<'a, 'b> !Send for AuthorityRequest<'a, 'b>
impl<'a, 'b> !Sync for AuthorityRequest<'a, 'b>
impl<'a, 'b> Unpin for AuthorityRequest<'a, 'b>
impl<'a, 'b> !UnwindSafe for AuthorityRequest<'a, 'b>
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