Struct cml_chain_wasm::certs::RegDrepCert
source · pub struct RegDrepCert(/* private fields */);Implementations§
source§impl RegDrepCert
impl RegDrepCert
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<RegDrepCert, JsError>
pub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<RegDrepCert, 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<RegDrepCert, JsError>
pub fn from_cbor_hex(cbor_bytes: &str) -> Result<RegDrepCert, JsError>
- Create this type from the CBOR bytes encoded as a hex string.
- This is useful for interfacing with CIP30
source§impl RegDrepCert
impl RegDrepCert
source§impl RegDrepCert
impl RegDrepCert
Trait Implementations§
source§impl AsRef<RegDrepCert> for RegDrepCert
impl AsRef<RegDrepCert> for RegDrepCert
source§fn as_ref(&self) -> &RegDrepCert
fn as_ref(&self) -> &RegDrepCert
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for RegDrepCert
impl Clone for RegDrepCert
source§fn clone(&self) -> RegDrepCert
fn clone(&self) -> RegDrepCert
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 RegDrepCert
impl Debug for RegDrepCert
source§impl From<RegDrepCert> for JsValue
impl From<RegDrepCert> for JsValue
source§fn from(value: RegDrepCert) -> Self
fn from(value: RegDrepCert) -> Self
Converts to this type from the input type.
source§impl From<RegDrepCert> for RegDrepCert
impl From<RegDrepCert> for RegDrepCert
source§fn from(native: RegDrepCert) -> Self
fn from(native: RegDrepCert) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for RegDrepCert
impl FromWasmAbi for RegDrepCert
source§impl Into<RegDrepCert> for RegDrepCert
impl Into<RegDrepCert> for RegDrepCert
source§fn into(self) -> RegDrepCert
fn into(self) -> RegDrepCert
Converts this type into the (usually inferred) input type.
source§impl IntoWasmAbi for RegDrepCert
impl IntoWasmAbi for RegDrepCert
source§impl OptionFromWasmAbi for RegDrepCert
impl OptionFromWasmAbi for RegDrepCert
source§impl OptionIntoWasmAbi for RegDrepCert
impl OptionIntoWasmAbi for RegDrepCert
source§impl RefFromWasmAbi for RegDrepCert
impl RefFromWasmAbi for RegDrepCert
§type Anchor = Ref<'static, RegDrepCert>
type Anchor = Ref<'static, RegDrepCert>
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 RegDrepCert
impl RefMutFromWasmAbi for RegDrepCert
Auto Trait Implementations§
impl Freeze for RegDrepCert
impl RefUnwindSafe for RegDrepCert
impl Send for RegDrepCert
impl Sync for RegDrepCert
impl Unpin for RegDrepCert
impl UnwindSafe for RegDrepCert
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.