#[repr(C)]
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>,
},
}
Expand description
Struct representing the values to be updated for an update
instructions.
Values that are set to ‘None’ are not changed; any value set to Some(_)
will
have its value updated. There are properties that have three valid states, which
allow the value to remaing the same, to be cleared or to set a new value.
Variants§
V1
Fields
The new update authority.
§
primary_sale_happened: Option<bool>
Indicates whether the primary sale has happened or not (once set to true
, it cannot be
changed back).
§
collection: CollectionToggle
Collection information.
§
collection_details: CollectionDetailsToggle
Additional details of the collection.
§
uses: UsesToggle
Uses information.
§
rule_set: RuleSetToggle
Required authorization data to validate the request.
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,
impl BorshDeserialize for UpdateArgswhere
Option<Pubkey>: BorshDeserialize,
Option<Data>: BorshDeserialize,
Option<bool>: BorshDeserialize,
CollectionToggle: BorshDeserialize,
CollectionDetailsToggle: BorshDeserialize,
UsesToggle: BorshDeserialize,
RuleSetToggle: BorshDeserialize,
Option<AuthorizationData>: BorshDeserialize,
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,
impl BorshSerialize for UpdateArgswhere
Option<Pubkey>: BorshSerialize,
Option<Data>: BorshSerialize,
Option<bool>: BorshSerialize,
CollectionToggle: BorshSerialize,
CollectionDetailsToggle: BorshSerialize,
UsesToggle: BorshSerialize,
RuleSetToggle: BorshSerialize,
Option<AuthorizationData>: 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 PartialEq<UpdateArgs> for UpdateArgs
impl PartialEq<UpdateArgs> 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 ==
.