pub struct TokenConfig {
pub public_total_supply: bool,
pub enable_deposit: bool,
pub enable_redeem: bool,
pub enable_mint: bool,
pub enable_burn: bool,
pub enable_modify_denoms: 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: bool
Indicates whether the total supply is public or should be kept secret. default: False
enable_deposit: bool
Indicates whether deposit functionality should be enabled default: False
enable_redeem: bool
Indicates whether redeem functionality should be enabled default: False
enable_mint: bool
Indicates whether mint functionality should be enabled default: False
enable_burn: bool
Indicates whether burn functionality should be enabled default: False
enable_modify_denoms: bool
Indicates whether it’s possible to change the allowed native denoms that can be exchanged for this token. default: False
Implementations§
source§impl TokenConfig
impl TokenConfig
pub fn public_total_supply(self) -> Self
pub fn enable_deposit(self) -> Self
pub fn enable_redeem(self) -> Self
pub fn enable_mint(self) -> Self
pub fn enable_burn(self) -> Self
pub fn enable_modify_denoms(self) -> Self
Trait Implementations§
source§impl Clone for TokenConfig
impl Clone for TokenConfig
source§fn clone(&self) -> TokenConfig
fn clone(&self) -> TokenConfig
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 TokenConfig
impl Debug for TokenConfig
source§impl Default for TokenConfig
impl Default for TokenConfig
source§fn default() -> TokenConfig
fn default() -> TokenConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TokenConfig
impl<'de> Deserialize<'de> for TokenConfig
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 From<TokenConfig> for TokenSettings
impl From<TokenConfig> for TokenSettings
source§fn from(config: TokenConfig) -> Self
fn from(config: TokenConfig) -> Self
Converts to this type from the input type.
source§impl JsonSchema for TokenConfig
impl JsonSchema for TokenConfig
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
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 moreAuto Trait Implementations§
impl RefUnwindSafe for TokenConfig
impl Send for TokenConfig
impl Sync for TokenConfig
impl Unpin for TokenConfig
impl UnwindSafe for TokenConfig
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