pub struct TransactionHash(/* private fields */);Implementations§
Source§impl TransactionHash
impl TransactionHash
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<TransactionHash, JsError>
pub fn from_raw_bytes(bytes: &[u8]) -> Result<TransactionHash, JsError>
- Parse from the direct raw bytes, without any CBOR structure
Trait Implementations§
Source§impl AsRef<TransactionHash> for TransactionHash
impl AsRef<TransactionHash> for TransactionHash
Source§fn as_ref(&self) -> &TransactionHash
fn as_ref(&self) -> &TransactionHash
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for TransactionHash
impl Clone for TransactionHash
Source§fn clone(&self) -> TransactionHash
fn clone(&self) -> TransactionHash
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 TransactionHash
impl Debug for TransactionHash
Source§impl From<TransactionHash> for JsValue
impl From<TransactionHash> for JsValue
Source§fn from(value: TransactionHash) -> Self
fn from(value: TransactionHash) -> Self
Converts to this type from the input type.
Source§impl From<TransactionHash> for TransactionHash
impl From<TransactionHash> for TransactionHash
Source§fn from(inner: TransactionHash) -> Self
fn from(inner: TransactionHash) -> Self
Converts to this type from the input type.
Source§impl From<TransactionHash> for TransactionHash
impl From<TransactionHash> for TransactionHash
Source§fn from(wrapper: TransactionHash) -> TransactionHash
fn from(wrapper: TransactionHash) -> TransactionHash
Converts to this type from the input type.
Source§impl FromWasmAbi for TransactionHash
impl FromWasmAbi for TransactionHash
Source§impl IntoWasmAbi for TransactionHash
impl IntoWasmAbi for TransactionHash
Source§impl LongRefFromWasmAbi for TransactionHash
impl LongRefFromWasmAbi for TransactionHash
Source§impl OptionFromWasmAbi for TransactionHash
impl OptionFromWasmAbi for TransactionHash
Source§impl OptionIntoWasmAbi for TransactionHash
impl OptionIntoWasmAbi for TransactionHash
Source§impl RefFromWasmAbi for TransactionHash
impl RefFromWasmAbi for TransactionHash
Source§type Anchor = RcRef<TransactionHash>
type Anchor = RcRef<TransactionHash>
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 TransactionHash
impl RefMutFromWasmAbi for TransactionHash
Source§impl TryFromJsValue for TransactionHash
impl TryFromJsValue for TransactionHash
Source§impl VectorFromWasmAbi for TransactionHash
impl VectorFromWasmAbi for TransactionHash
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[TransactionHash]>
Source§impl VectorIntoJsValue for TransactionHash
impl VectorIntoJsValue for TransactionHash
fn vector_into_jsvalue(vector: Box<[TransactionHash]>) -> JsValue
Source§impl VectorIntoWasmAbi for TransactionHash
impl VectorIntoWasmAbi for TransactionHash
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[TransactionHash]>) -> Self::Abi
Source§impl WasmDescribeVector for TransactionHash
impl WasmDescribeVector for TransactionHash
impl SupportsConstructor for TransactionHash
impl SupportsInstanceProperty for TransactionHash
impl SupportsStaticProperty for TransactionHash
Auto Trait Implementations§
impl Freeze for TransactionHash
impl RefUnwindSafe for TransactionHash
impl Send for TransactionHash
impl Sync for TransactionHash
impl Unpin for TransactionHash
impl UnwindSafe for TransactionHash
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.