pub struct RegulatedCoinMetadata<T: MoveType> {
pub id: UID,
pub coin_metadata_object: ID,
pub deny_cap_object: ID,
/* private fields */
}
Expand description
Similar to CoinMetadata, but created only for regulated coins that use the DenyList. This object is always immutable.
Fields§
§id: UID
§coin_metadata_object: ID
The ID of the coin’s CoinMetadata object.
deny_cap_object: ID
The ID of the coin’s DenyCap object.
Implementations§
Source§impl<T: MoveType> RegulatedCoinMetadata<T>
impl<T: MoveType> RegulatedCoinMetadata<T>
Source§impl<T: MoveType> RegulatedCoinMetadata<T>
impl<T: MoveType> RegulatedCoinMetadata<T>
pub fn move_instance(self, t: <T as MoveType>::TypeTag) -> MoveInstance<Self>
pub fn type_(t: <T as MoveType>::TypeTag) -> RegulatedCoinMetadataTypeTag<T>
Trait Implementations§
Source§impl<T: Clone + MoveType> Clone for RegulatedCoinMetadata<T>
impl<T: Clone + MoveType> Clone for RegulatedCoinMetadata<T>
Source§fn clone(&self) -> RegulatedCoinMetadata<T>
fn clone(&self) -> RegulatedCoinMetadata<T>
Returns a duplicate 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<'de, T: MoveType> Deserialize<'de> for RegulatedCoinMetadata<T>
impl<'de, T: MoveType> Deserialize<'de> for RegulatedCoinMetadata<T>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: MoveType> Display for RegulatedCoinMetadata<T>
impl<T: MoveType> Display for RegulatedCoinMetadata<T>
Source§impl<T: MoveType> MoveStruct for RegulatedCoinMetadata<T>
impl<T: MoveType> MoveStruct for RegulatedCoinMetadata<T>
type StructTag = RegulatedCoinMetadataTypeTag<T>
Source§impl<T: MoveType> MoveType for RegulatedCoinMetadata<T>
impl<T: MoveType> MoveType for RegulatedCoinMetadata<T>
Source§impl<T: MoveType> Serialize for RegulatedCoinMetadata<T>
impl<T: MoveType> Serialize for RegulatedCoinMetadata<T>
Source§impl<T: MoveType> StaticAddress for RegulatedCoinMetadata<T>
impl<T: MoveType> StaticAddress for RegulatedCoinMetadata<T>
Source§impl<T: MoveType> StaticModule for RegulatedCoinMetadata<T>
impl<T: MoveType> StaticModule for RegulatedCoinMetadata<T>
fn module() -> Identifier
Source§impl<T: MoveType> StaticName for RegulatedCoinMetadata<T>
impl<T: MoveType> StaticName for RegulatedCoinMetadata<T>
fn name() -> Identifier
Source§impl<T: MoveType + StaticTypeTag> StaticTypeParams for RegulatedCoinMetadata<T>
impl<T: MoveType + StaticTypeTag> StaticTypeParams for RegulatedCoinMetadata<T>
fn type_params() -> Vec<TypeTag>
Source§impl<T: MoveType> Tabled for RegulatedCoinMetadata<T>
impl<T: MoveType> Tabled for RegulatedCoinMetadata<T>
impl<T: Eq + MoveType> Eq for RegulatedCoinMetadata<T>
impl<T: MoveType> StructuralPartialEq for RegulatedCoinMetadata<T>
Auto Trait Implementations§
impl<T> Freeze for RegulatedCoinMetadata<T>
impl<T> RefUnwindSafe for RegulatedCoinMetadata<T>where
T: RefUnwindSafe,
impl<T> Send for RegulatedCoinMetadata<T>where
T: Send,
impl<T> Sync for RegulatedCoinMetadata<T>where
T: Sync,
impl<T> Unpin for RegulatedCoinMetadata<T>where
T: Unpin,
impl<T> UnwindSafe for RegulatedCoinMetadata<T>where
T: UnwindSafe,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more