Enum ftoken::ftoken_mod::msg::S721QueryMsg [−][src]
pub enum S721QueryMsg {
OwnerOf {
token_id: String,
viewer: Option<ViewerInfo>,
include_expired: Option<bool>,
},
PrivateMetadata {
token_id: String,
viewer: Option<ViewerInfo>,
},
NftDossier {
token_id: String,
viewer: Option<ViewerInfo>,
include_expired: Option<bool>,
},
}
Expand description
Query messages to be sent to SNIP721 contract. Uses viewing key for cross contract query, rather than permits
Variants
OwnerOf
Fields
token_id: String
viewer: Option<ViewerInfo>
optional address and key requesting to view the token owner
from snip721 contract display the owner of the specified token if authorized to view it. If the requester is also the token’s owner, the response will also include a list of any addresses that can transfer this token. The transfer approval list is for CW721 compliance, but the NftDossier query will be more complete by showing viewing approvals as well
PrivateMetadata
Fields
token_id: String
viewer: Option<ViewerInfo>
optional address and key requesting to view the private metadata
displays the private metadata if permitted to view it
NftDossier
Fields
token_id: String
viewer: Option<ViewerInfo>
optional address and key requesting to view the token information
displays all the information about a token that the viewer has permission to see. This may include the owner, the public metadata, the private metadata, royalty information, mint run information, whether the token is unwrapped, whether the token is transferable, and the token and inventory approvals
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 !=
.
pad the message to blocks of this size
Auto Trait Implementations
impl RefUnwindSafe for S721QueryMsg
impl Send for S721QueryMsg
impl Sync for S721QueryMsg
impl Unpin for S721QueryMsg
impl UnwindSafe for S721QueryMsg
Blanket Implementations
Mutably borrows from an owned value. Read more