Struct snip1155_reference_impl::state::state_structs::TknConfigFlat
source · pub struct TknConfigFlat {
pub is_nft: bool,
pub minters: Vec<Addr>,
pub decimals: u8,
pub public_total_supply: bool,
pub owner_is_public: bool,
pub enable_mint: bool,
pub enable_burn: bool,
pub minter_may_update_metadata: bool,
pub owner_may_update_metadata: bool,
}
Expand description
Constructed from input enum TknConfig
. Flattened for easier handling in contract logic
Fields§
§is_nft: bool
§minters: Vec<Addr>
§decimals: u8
§public_total_supply: bool
§owner_is_public: bool
§enable_mint: bool
§enable_burn: bool
§minter_may_update_metadata: bool
§owner_may_update_metadata: bool
Implementations§
Trait Implementations§
source§impl Clone for TknConfigFlat
impl Clone for TknConfigFlat
source§fn clone(&self) -> TknConfigFlat
fn clone(&self) -> TknConfigFlat
Returns a copy 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 Debug for TknConfigFlat
impl Debug for TknConfigFlat
source§impl<'de> Deserialize<'de> for TknConfigFlat
impl<'de> Deserialize<'de> for TknConfigFlat
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 JsonSchema for TknConfigFlat
impl JsonSchema for TknConfigFlat
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
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 moresource§impl PartialEq<TknConfigFlat> for TknConfigFlat
impl PartialEq<TknConfigFlat> for TknConfigFlat
source§fn eq(&self, other: &TknConfigFlat) -> bool
fn eq(&self, other: &TknConfigFlat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.