Struct cml_chain_wasm::certs::RegCert
source · pub struct RegCert(/* private fields */);Implementations§
source§impl RegCert
impl RegCert
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<RegCert, JsError>
pub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<RegCert, 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.
source§impl RegCert
impl RegCert
pub fn stake_credential(&self) -> StakeCredential
pub fn coin(&self) -> Coin
pub fn new(stake_credential: &StakeCredential, coin: Coin) -> Self
Trait Implementations§
source§impl FromWasmAbi for RegCert
impl FromWasmAbi for RegCert
source§impl IntoWasmAbi for RegCert
impl IntoWasmAbi for RegCert
source§impl OptionFromWasmAbi for RegCert
impl OptionFromWasmAbi for RegCert
source§impl OptionIntoWasmAbi for RegCert
impl OptionIntoWasmAbi for RegCert
source§impl RefFromWasmAbi for RegCert
impl RefFromWasmAbi for RegCert
source§impl RefMutFromWasmAbi for RegCert
impl RefMutFromWasmAbi for RegCert
Auto Trait Implementations§
impl Freeze for RegCert
impl RefUnwindSafe for RegCert
impl Send for RegCert
impl Sync for RegCert
impl Unpin for RegCert
impl UnwindSafe for RegCert
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> 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.