Struct cml_chain_wasm::certs::StakeRegistration
source · pub struct StakeRegistration(/* private fields */);Implementations§
source§impl StakeRegistration
impl StakeRegistration
sourcepub fn to_cbor_bytes(&self) -> Vec<u8> ⓘ
pub fn to_cbor_bytes(&self) -> Vec<u8> ⓘ
- Serialize this type to CBOR bytes
- This type type supports encoding preservation so this will preserve round-trip CBOR formats.
- If created from scratch the CBOR will be canonical.
sourcepub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<StakeRegistration, JsError>
pub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<StakeRegistration, 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 type supports encoding preservation so this will preserve round-trip CBOR formats.
- If created from scratch the CBOR will be canonical.
sourcepub fn from_cbor_hex(cbor_bytes: &str) -> Result<StakeRegistration, JsError>
pub fn from_cbor_hex(cbor_bytes: &str) -> Result<StakeRegistration, JsError>
- Create this type from the CBOR bytes encoded as a hex string.
- This is useful for interfacing with CIP30
source§impl StakeRegistration
impl StakeRegistration
pub fn stake_credential(&self) -> StakeCredential
pub fn new(stake_credential: &StakeCredential) -> Self
Trait Implementations§
source§impl AsRef<StakeRegistration> for StakeRegistration
impl AsRef<StakeRegistration> for StakeRegistration
source§fn as_ref(&self) -> &StakeRegistration
fn as_ref(&self) -> &StakeRegistration
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for StakeRegistration
impl Clone for StakeRegistration
source§fn clone(&self) -> StakeRegistration
fn clone(&self) -> StakeRegistration
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 StakeRegistration
impl Debug for StakeRegistration
source§impl From<StakeRegistration> for JsValue
impl From<StakeRegistration> for JsValue
source§fn from(value: StakeRegistration) -> Self
fn from(value: StakeRegistration) -> Self
Converts to this type from the input type.
source§impl From<StakeRegistration> for StakeRegistration
impl From<StakeRegistration> for StakeRegistration
source§fn from(native: StakeRegistration) -> Self
fn from(native: StakeRegistration) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for StakeRegistration
impl FromWasmAbi for StakeRegistration
source§impl Into<StakeRegistration> for StakeRegistration
impl Into<StakeRegistration> for StakeRegistration
source§fn into(self) -> StakeRegistration
fn into(self) -> StakeRegistration
Converts this type into the (usually inferred) input type.
source§impl IntoWasmAbi for StakeRegistration
impl IntoWasmAbi for StakeRegistration
source§impl RefFromWasmAbi for StakeRegistration
impl RefFromWasmAbi for StakeRegistration
§type Anchor = Ref<'static, StakeRegistration>
type Anchor = Ref<'static, StakeRegistration>
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.Auto Trait Implementations§
impl Freeze for StakeRegistration
impl RefUnwindSafe for StakeRegistration
impl Send for StakeRegistration
impl Sync for StakeRegistration
impl Unpin for StakeRegistration
impl UnwindSafe for StakeRegistration
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> 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,
§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.