Enum ftoken::ftoken_mod::msg::AllowedNftMsg [−][src]
pub enum AllowedNftMsg {
SetMetadata {
public_metadata: Option<Metadata>,
private_metadata: Option<Metadata>,
},
Reveal {},
MakeOwnershipPrivate {},
SetGlobalApproval {
view_owner: Option<AccessLevel>,
view_private_metadata: Option<AccessLevel>,
expires: Option<Expiration>,
},
SetWhitelistedApproval {
address: HumanAddr,
view_owner: Option<AccessLevel>,
view_private_metadata: Option<AccessLevel>,
expires: Option<Expiration>,
},
}
Expand description
List of messages that is allowed to be sent to underlying NFT. ftoken holders
can propose to send these messages to the underlying NFT, where other ftoken
holders vote on whether to accept the proposal. Once a proposal passes, a
transaction can be triggered to send the proposed message to the underlying NFT
Variants
SetMetadata
Reveal
Fields
MakeOwnershipPrivate
Fields
SetGlobalApproval
Fields
view_owner: Option<AccessLevel>
view_private_metadata: Option<AccessLevel>
expires: Option<Expiration>
SetWhitelistedApproval
Fields
view_owner: Option<AccessLevel>
view_private_metadata: Option<AccessLevel>
expires: Option<Expiration>
Trait Implementations
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
The name of the generated JSON Schema. Read more
Generates a JSON Schema for this type. Read more
fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the $ref
keyword. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for AllowedNftMsg
impl Send for AllowedNftMsg
impl Sync for AllowedNftMsg
impl Unpin for AllowedNftMsg
impl UnwindSafe for AllowedNftMsg
Blanket Implementations
Mutably borrows from an owned value. Read more