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