pub struct PoolMetadataHash(/* private fields */);Implementations§
Source§impl PoolMetadataHash
impl PoolMetadataHash
Sourcepub fn to_raw_bytes(&self) -> Vec<u8> ⓘ
pub fn to_raw_bytes(&self) -> Vec<u8> ⓘ
- Direct raw bytes without any CBOR structure
Sourcepub fn from_raw_bytes(bytes: &[u8]) -> Result<PoolMetadataHash, JsError>
pub fn from_raw_bytes(bytes: &[u8]) -> Result<PoolMetadataHash, JsError>
- Parse from the direct raw bytes, without any CBOR structure
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 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 PoolMetadataHash
impl Debug for PoolMetadataHash
Source§impl From<PoolMetadataHash> for JsValue
impl From<PoolMetadataHash> for JsValue
Source§fn from(value: PoolMetadataHash) -> Self
fn from(value: PoolMetadataHash) -> Self
Converts to this type from the input type.
Source§impl From<PoolMetadataHash> for PoolMetadataHash
impl From<PoolMetadataHash> for PoolMetadataHash
Source§fn from(inner: PoolMetadataHash) -> Self
fn from(inner: PoolMetadataHash) -> Self
Converts to this type from the input type.
Source§impl From<PoolMetadataHash> for PoolMetadataHash
impl From<PoolMetadataHash> for PoolMetadataHash
Source§fn from(wrapper: PoolMetadataHash) -> PoolMetadataHash
fn from(wrapper: 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§impl OptionIntoWasmAbi for PoolMetadataHash
impl OptionIntoWasmAbi for PoolMetadataHash
Source§impl RefFromWasmAbi for PoolMetadataHash
impl RefFromWasmAbi for PoolMetadataHash
Source§type Anchor = RcRef<PoolMetadataHash>
type Anchor = RcRef<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§impl RefMutFromWasmAbi for PoolMetadataHash
impl RefMutFromWasmAbi for PoolMetadataHash
Source§impl TryFromJsValue for PoolMetadataHash
impl TryFromJsValue for PoolMetadataHash
Source§impl VectorFromWasmAbi for PoolMetadataHash
impl VectorFromWasmAbi for PoolMetadataHash
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[PoolMetadataHash]>
Source§impl VectorIntoJsValue for PoolMetadataHash
impl VectorIntoJsValue for PoolMetadataHash
fn vector_into_jsvalue(vector: Box<[PoolMetadataHash]>) -> JsValue
Source§impl VectorIntoWasmAbi for PoolMetadataHash
impl VectorIntoWasmAbi for PoolMetadataHash
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[PoolMetadataHash]>) -> Self::Abi
Source§impl WasmDescribeVector for PoolMetadataHash
impl WasmDescribeVector for PoolMetadataHash
impl SupportsConstructor for PoolMetadataHash
impl SupportsInstanceProperty for PoolMetadataHash
impl SupportsStaticProperty for PoolMetadataHash
Auto 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§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.