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