pub struct TokenInfo<T> {
pub owner: Addr,
pub approvals: Vec<Approval>,
pub token_uri: Option<String>,
pub seller_fee_bps: Option<u16>,
pub payment_addr: Option<Addr>,
pub extension: T,
}Fields§
§owner: AddrThe owner of the newly minted NFT
approvals: Vec<Approval>Approvals are stored here, as we clear them all upon transfer and cannot accumulate much
token_uri: Option<String>Universal resource identifier for this NFT Should point to a JSON file that conforms to the ERC721 Metadata JSON Schema
seller_fee_bps: Option<u16>Seller fee basis points, 0-10000 0 means no fee, 100 means 1%, 10000 means 100% This is the fee paid by the buyer to the original creator
payment_addr: Option<Addr>Payment address, is the address that will receive the payment
extension: TYou can add any custom metadata here when you extend cw721-base
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for TokenInfo<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for TokenInfo<T>where
T: Deserialize<'de>,
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<'a, T> IndexList<TokenInfo<T>> for TokenIndexes<'a, T>
impl<'a, T> IndexList<TokenInfo<T>> for TokenIndexes<'a, T>
Source§impl<T: JsonSchema> JsonSchema for TokenInfo<T>
impl<T: JsonSchema> JsonSchema for TokenInfo<T>
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§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 moreimpl<T> StructuralPartialEq for TokenInfo<T>
Auto Trait Implementations§
impl<T> Freeze for TokenInfo<T>where
T: Freeze,
impl<T> RefUnwindSafe for TokenInfo<T>where
T: RefUnwindSafe,
impl<T> Send for TokenInfo<T>where
T: Send,
impl<T> Sync for TokenInfo<T>where
T: Sync,
impl<T> Unpin for TokenInfo<T>where
T: Unpin,
impl<T> UnwindSafe for TokenInfo<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