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