Struct nft_server::open_sea::ContractMetadata
source · [−]pub struct ContractMetadata {
pub name: String,
pub description: String,
pub image: NftImage,
pub external_link: Url,
pub seller_fee_basis_points: usize,
pub fee_recipient: Address,
}Expand description
OpenSea-style contract-level metadata
Fields
name: StringThe collection name
description: StringThe collection description
image: NftImageThe collection image
external_link: UrlAn external link for the NFT collection
seller_fee_basis_points: usizeThe seller fee, in bps
fee_recipient: AddressThe recipient of the seller fee
Trait Implementations
sourceimpl Clone for ContractMetadata
impl Clone for ContractMetadata
sourcefn clone(&self) -> ContractMetadata
fn clone(&self) -> ContractMetadata
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ContractMetadata
impl Debug for ContractMetadata
sourceimpl<'de> Deserialize<'de> for ContractMetadata
impl<'de> Deserialize<'de> for ContractMetadata
sourcefn 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
sourceimpl Serialize for ContractMetadata
impl Serialize for ContractMetadata
Auto Trait Implementations
impl RefUnwindSafe for ContractMetadata
impl Send for ContractMetadata
impl Sync for ContractMetadata
impl Unpin for ContractMetadata
impl UnwindSafe for ContractMetadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more