Struct cml_chain_wasm::crypto::PoolMetadataHash
source · pub struct PoolMetadataHash(/* private fields */);Implementations§
source§impl PoolMetadataHash
impl PoolMetadataHash
pub fn to_raw_bytes(&self) -> Vec<u8>
pub fn to_bech32(&self, prefix: &str) -> Result<String, JsError>
pub fn to_hex(&self) -> String
pub fn from_bech32(bech32_str: &str) -> Result<PoolMetadataHash, JsError>
pub fn from_hex(input: &str) -> Result<PoolMetadataHash, JsError>
pub fn from_raw_bytes(bytes: &[u8]) -> Result<PoolMetadataHash, JsError>
Trait Implementations§
source§impl AsRef<PoolMetadataHash> for PoolMetadataHash
impl AsRef<PoolMetadataHash> for PoolMetadataHash
source§fn as_ref(&self) -> &PoolMetadataHash
fn as_ref(&self) -> &PoolMetadataHash
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for PoolMetadataHash
impl Clone for PoolMetadataHash
source§fn clone(&self) -> PoolMetadataHash
fn clone(&self) -> PoolMetadataHash
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 PoolMetadataHash
impl Debug for PoolMetadataHash
source§impl From<PoolMetadataHash> for JsValue
impl From<PoolMetadataHash> for JsValue
source§fn from(value: PoolMetadataHash) -> JsValue
fn from(value: PoolMetadataHash) -> JsValue
Converts to this type from the input type.
source§impl From<PoolMetadataHash> for PoolMetadataHash
impl From<PoolMetadataHash> for PoolMetadataHash
source§fn from(inner: PoolMetadataHash) -> PoolMetadataHash
fn from(inner: PoolMetadataHash) -> PoolMetadataHash
Converts to this type from the input type.
source§impl FromWasmAbi for PoolMetadataHash
impl FromWasmAbi for PoolMetadataHash
source§impl IntoWasmAbi for PoolMetadataHash
impl IntoWasmAbi for PoolMetadataHash
source§impl OptionFromWasmAbi for PoolMetadataHash
impl OptionFromWasmAbi for PoolMetadataHash
source§fn is_none(abi: &<PoolMetadataHash as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<PoolMetadataHash as FromWasmAbi>::Abi) -> bool
Tests whether the argument is a “none” instance. If so it will be
deserialized as
None, and otherwise it will be passed to
FromWasmAbi.source§impl OptionIntoWasmAbi for PoolMetadataHash
impl OptionIntoWasmAbi for PoolMetadataHash
source§fn none() -> <PoolMetadataHash as IntoWasmAbi>::Abi
fn none() -> <PoolMetadataHash as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None branch of this option. Read moresource§impl RefFromWasmAbi for PoolMetadataHash
impl RefFromWasmAbi for PoolMetadataHash
§type Anchor = Ref<'static, PoolMetadataHash>
type Anchor = Ref<'static, PoolMetadataHash>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.source§unsafe fn ref_from_abi(
js: <PoolMetadataHash as RefFromWasmAbi>::Abi
) -> <PoolMetadataHash as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <PoolMetadataHash as RefFromWasmAbi>::Abi ) -> <PoolMetadataHash as RefFromWasmAbi>::Anchor
source§impl RefMutFromWasmAbi for PoolMetadataHash
impl RefMutFromWasmAbi for PoolMetadataHash
§type Anchor = RefMut<'static, PoolMetadataHash>
type Anchor = RefMut<'static, PoolMetadataHash>
Same as
RefFromWasmAbi::Anchorsource§unsafe fn ref_mut_from_abi(
js: <PoolMetadataHash as RefMutFromWasmAbi>::Abi
) -> <PoolMetadataHash as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <PoolMetadataHash as RefMutFromWasmAbi>::Abi ) -> <PoolMetadataHash as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abiAuto Trait Implementations§
impl Freeze for PoolMetadataHash
impl RefUnwindSafe for PoolMetadataHash
impl Send for PoolMetadataHash
impl Sync for PoolMetadataHash
impl Unpin for PoolMetadataHash
impl UnwindSafe for PoolMetadataHash
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
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abisource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.