pub enum UncheckedDenom {
Native(String),
Cw20(String),
}Expand description
A denom that has not been checked to confirm it points to a valid asset.
Variants§
Implementations§
Source§impl UncheckedDenom
impl UncheckedDenom
Sourcepub fn into_checked(self, deps: Deps<'_>) -> Result<CheckedDenom, DenomError>
pub fn into_checked(self, deps: Deps<'_>) -> Result<CheckedDenom, DenomError>
Converts an unchecked denomination into a checked one. In the
case of native denominations, it is checked that the
denomination is valid according to the default SDK rules. In
the case of cw20 denominations the it is checked that the
specified address is valid and that that address responds to a
TokenInfo query without erroring and returns a valid
cw20::TokenInfoResponse.
Trait Implementations§
Source§impl Clone for UncheckedDenom
impl Clone for UncheckedDenom
Source§fn clone(&self) -> UncheckedDenom
fn clone(&self) -> UncheckedDenom
Returns a duplicate 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 UncheckedDenom
impl Debug for UncheckedDenom
Source§impl<'de> Deserialize<'de> for UncheckedDenom
impl<'de> Deserialize<'de> for UncheckedDenom
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 UncheckedDenom
impl JsonSchema for UncheckedDenom
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 moreSource§impl PartialEq for UncheckedDenom
impl PartialEq for UncheckedDenom
Source§impl Serialize for UncheckedDenom
impl Serialize for UncheckedDenom
impl StructuralPartialEq for UncheckedDenom
Auto Trait Implementations§
impl Freeze for UncheckedDenom
impl RefUnwindSafe for UncheckedDenom
impl Send for UncheckedDenom
impl Sync for UncheckedDenom
impl Unpin for UncheckedDenom
impl UnwindSafe for UncheckedDenom
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