#[repr(u8)]pub enum OwnershipMode {
Minter = 0,
Assigned = 1,
Transferable = 2,
}Expand description
This modality specifies the behavior regarding ownership of NFTs and whether the owner of the NFT can change over the contract’s lifetime.
Ownership mode is a required installation parameter and cannot be changed once the contract has been installed.
Variants§
Minter = 0
The minter owns it and can never transfer it.
Assigned = 1
The minter assigns it to an address and can never be transferred.
Transferable = 2
The NFT can be transferred even to an recipient that does not exist.
Trait Implementations§
Source§impl Clone for OwnershipMode
impl Clone for OwnershipMode
Source§fn clone(&self) -> OwnershipMode
fn clone(&self) -> OwnershipMode
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 OwnershipMode
impl Debug for OwnershipMode
Source§impl Default for OwnershipMode
impl Default for OwnershipMode
Source§fn default() -> OwnershipMode
fn default() -> OwnershipMode
Returns the “default value” for a type. Read more
Source§impl FromBytes for OwnershipMode
impl FromBytes for OwnershipMode
Source§impl HasEvents for OwnershipMode
impl HasEvents for OwnershipMode
Source§impl NamedCLTyped for OwnershipMode
impl NamedCLTyped for OwnershipMode
Source§fn ty() -> NamedCLType
fn ty() -> NamedCLType
Returns the NamedCLType of the implementing type.
Source§impl Ord for OwnershipMode
impl Ord for OwnershipMode
Source§fn cmp(&self, other: &OwnershipMode) -> Ordering
fn cmp(&self, other: &OwnershipMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OwnershipMode
impl PartialEq for OwnershipMode
Source§impl PartialOrd for OwnershipMode
impl PartialOrd for OwnershipMode
Source§impl SchemaCustomTypes for OwnershipMode
impl SchemaCustomTypes for OwnershipMode
Source§fn schema_types() -> Vec<Option<CustomType>>
fn schema_types() -> Vec<Option<CustomType>>
Returns a vector of optional CustomTypes.
Source§impl ToBytes for OwnershipMode
impl ToBytes for OwnershipMode
Source§fn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Returns the length of the
Vec<u8> which would be returned from a successful call to
to_bytes() or into_bytes(). The data is not actually serialized, so this call is
relatively cheap.Source§impl TryFrom<u8> for OwnershipMode
impl TryFrom<u8> for OwnershipMode
impl Copy for OwnershipMode
impl Eq for OwnershipMode
impl SchemaCustomElement for OwnershipMode
impl StructuralPartialEq for OwnershipMode
Auto Trait Implementations§
impl Freeze for OwnershipMode
impl RefUnwindSafe for OwnershipMode
impl Send for OwnershipMode
impl Sync for OwnershipMode
impl Unpin for OwnershipMode
impl UnwindSafe for OwnershipMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EntrypointArgument for T
impl<T> EntrypointArgument for T
Source§fn is_required() -> bool
fn is_required() -> bool
Returns
true if the argument is required.Source§fn insert_runtime_arg(self, name: &str, args: &mut RuntimeArgs)
fn insert_runtime_arg(self, name: &str, args: &mut RuntimeArgs)
Inserts the argument into the runtime args.
Source§fn unwrap(value: Option<T>, env: &ContractEnv) -> T
fn unwrap(value: Option<T>, env: &ContractEnv) -> T
Unwraps the argument from an Option.
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> SchemaErrors for Twhere
T: SchemaCustomElement,
impl<T> SchemaErrors for Twhere
T: SchemaCustomElement,
Source§impl<T> SchemaEvents for Twhere
T: SchemaCustomElement,
impl<T> SchemaEvents for Twhere
T: SchemaCustomElement,
Source§fn custom_types() -> Vec<Option<CustomType>>
fn custom_types() -> Vec<Option<CustomType>>
Returns a vector of CustomTypes. Read more