pub struct HDAddressPayload(/* private fields */);Implementations§
Source§impl HDAddressPayload
impl HDAddressPayload
Sourcepub fn to_cbor_bytes(&self) -> Vec<u8> ⓘ
pub fn to_cbor_bytes(&self) -> Vec<u8> ⓘ
- Serialize this type to CBOR bytes.
- This type does NOT support fine-tuned encoding options so this may or may not be
- canonical CBOR and may or may not preserve round-trip encodings.
Sourcepub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<HDAddressPayload, JsError>
pub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<HDAddressPayload, JsError>
- Create this type from CBOR bytes
Sourcepub fn to_cbor_hex(&self) -> String
pub fn to_cbor_hex(&self) -> String
- Serialize this type to CBOR bytes encoded as a hex string (useful for working with CIP30).
- This type does NOT support fine-tuned encoding options so this may or may not be
- canonical CBOR and may or may not preserve round-trip encodings.
Sourcepub fn from_cbor_hex(cbor_bytes: &str) -> Result<HDAddressPayload, JsError>
pub fn from_cbor_hex(cbor_bytes: &str) -> Result<HDAddressPayload, JsError>
- Create this type from the CBOR bytes encoded as a hex string.
- This is useful for interfacing with CIP30
Trait Implementations§
Source§impl AsRef<HDAddressPayload> for HDAddressPayload
impl AsRef<HDAddressPayload> for HDAddressPayload
Source§fn as_ref(&self) -> &HDAddressPayload
fn as_ref(&self) -> &HDAddressPayload
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for HDAddressPayload
impl Clone for HDAddressPayload
Source§fn clone(&self) -> HDAddressPayload
fn clone(&self) -> HDAddressPayload
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 HDAddressPayload
impl Debug for HDAddressPayload
Source§impl From<HDAddressPayload> for HDAddressPayload
impl From<HDAddressPayload> for HDAddressPayload
Source§fn from(native: HDAddressPayload) -> Self
fn from(native: HDAddressPayload) -> Self
Converts to this type from the input type.
Source§impl From<HDAddressPayload> for JsValue
impl From<HDAddressPayload> for JsValue
Source§fn from(value: HDAddressPayload) -> Self
fn from(value: HDAddressPayload) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for HDAddressPayload
impl FromWasmAbi for HDAddressPayload
Source§impl Into<HDAddressPayload> for HDAddressPayload
impl Into<HDAddressPayload> for HDAddressPayload
Source§fn into(self) -> HDAddressPayload
fn into(self) -> HDAddressPayload
Converts this type into the (usually inferred) input type.
Source§impl IntoWasmAbi for HDAddressPayload
impl IntoWasmAbi for HDAddressPayload
Source§impl OptionFromWasmAbi for HDAddressPayload
impl OptionFromWasmAbi for HDAddressPayload
Source§impl OptionIntoWasmAbi for HDAddressPayload
impl OptionIntoWasmAbi for HDAddressPayload
Source§impl RefFromWasmAbi for HDAddressPayload
impl RefFromWasmAbi for HDAddressPayload
Source§type Anchor = RcRef<HDAddressPayload>
type Anchor = RcRef<HDAddressPayload>
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 HDAddressPayload
impl RefMutFromWasmAbi for HDAddressPayload
Source§impl TryFromJsValue for HDAddressPayload
impl TryFromJsValue for HDAddressPayload
Source§impl VectorFromWasmAbi for HDAddressPayload
impl VectorFromWasmAbi for HDAddressPayload
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[HDAddressPayload]>
Source§impl VectorIntoJsValue for HDAddressPayload
impl VectorIntoJsValue for HDAddressPayload
fn vector_into_jsvalue(vector: Box<[HDAddressPayload]>) -> JsValue
Source§impl VectorIntoWasmAbi for HDAddressPayload
impl VectorIntoWasmAbi for HDAddressPayload
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[HDAddressPayload]>) -> Self::Abi
Source§impl WasmDescribeVector for HDAddressPayload
impl WasmDescribeVector for HDAddressPayload
impl SupportsConstructor for HDAddressPayload
impl SupportsInstanceProperty for HDAddressPayload
impl SupportsStaticProperty for HDAddressPayload
Auto Trait Implementations§
impl Freeze for HDAddressPayload
impl RefUnwindSafe for HDAddressPayload
impl Send for HDAddressPayload
impl Sync for HDAddressPayload
impl Unpin for HDAddressPayload
impl UnwindSafe for HDAddressPayload
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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.