Enum mpl_token_metadata::types::UpdateArgs
source · pub enum UpdateArgs {
V1 {
new_update_authority: Option<Pubkey>,
data: Option<Data>,
primary_sale_happened: Option<bool>,
is_mutable: Option<bool>,
collection: CollectionToggle,
collection_details: CollectionDetailsToggle,
uses: UsesToggle,
rule_set: RuleSetToggle,
authorization_data: Option<AuthorizationData>,
},
AsUpdateAuthorityV2 {
new_update_authority: Option<Pubkey>,
data: Option<Data>,
primary_sale_happened: Option<bool>,
is_mutable: Option<bool>,
collection: CollectionToggle,
collection_details: CollectionDetailsToggle,
uses: UsesToggle,
rule_set: RuleSetToggle,
token_standard: Option<TokenStandard>,
authorization_data: Option<AuthorizationData>,
},
AsAuthorityItemDelegateV2 {
new_update_authority: Option<Pubkey>,
primary_sale_happened: Option<bool>,
is_mutable: Option<bool>,
token_standard: Option<TokenStandard>,
authorization_data: Option<AuthorizationData>,
},
AsCollectionDelegateV2 {
collection: CollectionToggle,
authorization_data: Option<AuthorizationData>,
},
AsDataDelegateV2 {
data: Option<Data>,
authorization_data: Option<AuthorizationData>,
},
AsProgrammableConfigDelegateV2 {
rule_set: RuleSetToggle,
authorization_data: Option<AuthorizationData>,
},
AsDataItemDelegateV2 {
data: Option<Data>,
authorization_data: Option<AuthorizationData>,
},
AsCollectionItemDelegateV2 {
collection: CollectionToggle,
authorization_data: Option<AuthorizationData>,
},
AsProgrammableConfigItemDelegateV2 {
rule_set: RuleSetToggle,
authorization_data: Option<AuthorizationData>,
},
}
Variants§
V1
Fields
§
collection: CollectionToggle
§
collection_details: CollectionDetailsToggle
§
uses: UsesToggle
§
rule_set: RuleSetToggle
AsUpdateAuthorityV2
Fields
§
collection: CollectionToggle
§
collection_details: CollectionDetailsToggle
§
uses: UsesToggle
§
rule_set: RuleSetToggle
§
token_standard: Option<TokenStandard>
AsAuthorityItemDelegateV2
AsCollectionDelegateV2
AsDataDelegateV2
AsProgrammableConfigDelegateV2
AsDataItemDelegateV2
AsCollectionItemDelegateV2
AsProgrammableConfigItemDelegateV2
Implementations§
source§impl UpdateArgs
impl UpdateArgs
pub fn default_as_collection_delegate() -> Self
pub fn default_as_data_delegate() -> Self
pub fn default_as_programmable_config_delegate() -> Self
pub fn default_as_data_item_delegate() -> Self
pub fn default_as_collection_item_delegate() -> Self
pub fn default_as_programmable_config_item_delegate() -> Self
Trait Implementations§
source§impl BorshDeserialize for UpdateArgswhere
Option<Pubkey>: BorshDeserialize,
Option<Data>: BorshDeserialize,
Option<bool>: BorshDeserialize,
CollectionToggle: BorshDeserialize,
CollectionDetailsToggle: BorshDeserialize,
UsesToggle: BorshDeserialize,
RuleSetToggle: BorshDeserialize,
Option<AuthorizationData>: BorshDeserialize,
Option<TokenStandard>: BorshDeserialize,
impl BorshDeserialize for UpdateArgswhere Option<Pubkey>: BorshDeserialize, Option<Data>: BorshDeserialize, Option<bool>: BorshDeserialize, CollectionToggle: BorshDeserialize, CollectionDetailsToggle: BorshDeserialize, UsesToggle: BorshDeserialize, RuleSetToggle: BorshDeserialize, Option<AuthorizationData>: BorshDeserialize, Option<TokenStandard>: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where R: Read,
source§impl BorshSerialize for UpdateArgswhere
Option<Pubkey>: BorshSerialize,
Option<Data>: BorshSerialize,
Option<bool>: BorshSerialize,
CollectionToggle: BorshSerialize,
CollectionDetailsToggle: BorshSerialize,
UsesToggle: BorshSerialize,
RuleSetToggle: BorshSerialize,
Option<AuthorizationData>: BorshSerialize,
Option<TokenStandard>: BorshSerialize,
impl BorshSerialize for UpdateArgswhere Option<Pubkey>: BorshSerialize, Option<Data>: BorshSerialize, Option<bool>: BorshSerialize, CollectionToggle: BorshSerialize, CollectionDetailsToggle: BorshSerialize, UsesToggle: BorshSerialize, RuleSetToggle: BorshSerialize, Option<AuthorizationData>: BorshSerialize, Option<TokenStandard>: BorshSerialize,
source§impl Clone for UpdateArgs
impl Clone for UpdateArgs
source§fn clone(&self) -> UpdateArgs
fn clone(&self) -> UpdateArgs
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UpdateArgs
impl Debug for UpdateArgs
source§impl Default for UpdateArgs
impl Default for UpdateArgs
source§impl EnumExt for UpdateArgswhere
Option<Pubkey>: BorshDeserialize,
Option<Data>: BorshDeserialize,
Option<bool>: BorshDeserialize,
CollectionToggle: BorshDeserialize,
CollectionDetailsToggle: BorshDeserialize,
UsesToggle: BorshDeserialize,
RuleSetToggle: BorshDeserialize,
Option<AuthorizationData>: BorshDeserialize,
Option<TokenStandard>: BorshDeserialize,
impl EnumExt for UpdateArgswhere Option<Pubkey>: BorshDeserialize, Option<Data>: BorshDeserialize, Option<bool>: BorshDeserialize, CollectionToggle: BorshDeserialize, CollectionDetailsToggle: BorshDeserialize, UsesToggle: BorshDeserialize, RuleSetToggle: BorshDeserialize, Option<AuthorizationData>: BorshDeserialize, Option<TokenStandard>: BorshDeserialize,
source§impl PartialEq for UpdateArgs
impl PartialEq for UpdateArgs
source§fn eq(&self, other: &UpdateArgs) -> bool
fn eq(&self, other: &UpdateArgs) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for UpdateArgs
impl StructuralEq for UpdateArgs
impl StructuralPartialEq for UpdateArgs
Auto Trait Implementations§
impl RefUnwindSafe for UpdateArgs
impl Send for UpdateArgs
impl Sync for UpdateArgs
impl Unpin for UpdateArgs
impl UnwindSafe for UpdateArgs
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more