Struct fadroma::snip20_impl::msg::InitConfig
source · [−]pub struct InitConfig {
pub public_total_supply: Option<bool>,
pub enable_deposit: Option<bool>,
pub enable_redeem: Option<bool>,
pub enable_mint: Option<bool>,
pub enable_burn: Option<bool>,
}
Expand description
This type represents optional configuration values which can be overridden. All values are optional and have defaults which are more private by default, but can be overridden if necessary
Fields
public_total_supply: Option<bool>
Indicates whether the total supply is public or should be kept secret. default: False
enable_deposit: Option<bool>
Indicates whether deposit functionality should be enabled default: False
enable_redeem: Option<bool>
Indicates whether redeem functionality should be enabled default: False
enable_mint: Option<bool>
Indicates whether mint functionality should be enabled default: False
enable_burn: Option<bool>
Indicates whether burn functionality should be enabled default: False
Implementations
sourceimpl InitConfig
impl InitConfig
pub fn builder() -> InitConfigBuilder
pub fn public_total_supply(&self) -> bool
pub fn deposit_enabled(&self) -> bool
pub fn redeem_enabled(&self) -> bool
pub fn mint_enabled(&self) -> bool
pub fn burn_enabled(&self) -> bool
Trait Implementations
sourceimpl Clone for InitConfig
impl Clone for InitConfig
sourcefn clone(&self) -> InitConfig
fn clone(&self) -> InitConfig
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 more
sourceimpl Debug for InitConfig
impl Debug for InitConfig
sourceimpl Default for InitConfig
impl Default for InitConfig
sourcefn default() -> InitConfig
fn default() -> InitConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for InitConfig
impl<'de> Deserialize<'de> for InitConfig
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 JsonSchema for InitConfig
impl JsonSchema for InitConfig
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn 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
sourceimpl Serialize for InitConfig
impl Serialize for InitConfig
Auto Trait Implementations
impl RefUnwindSafe for InitConfig
impl Send for InitConfig
impl Sync for InitConfig
impl Unpin for InitConfig
impl UnwindSafe for InitConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more