pub struct UpdateDrepCert(/* private fields */);Implementations§
Source§impl UpdateDrepCert
impl UpdateDrepCert
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 to_canonical_cbor_bytes(&self) -> Vec<u8> ⓘ
pub fn to_canonical_cbor_bytes(&self) -> Vec<u8> ⓘ
- Serialize this type to CBOR bytes using canonical CBOR encodings
Sourcepub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<UpdateDrepCert, JsError>
pub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<UpdateDrepCert, 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 to_canonical_cbor_hex(&self) -> String
pub fn to_canonical_cbor_hex(&self) -> String
- Serialize this type to CBOR bytes using canonical CBOR encodings as hex bytes
Sourcepub fn from_cbor_hex(cbor_bytes: &str) -> Result<UpdateDrepCert, JsError>
pub fn from_cbor_hex(cbor_bytes: &str) -> Result<UpdateDrepCert, JsError>
- Create this type from the CBOR bytes encoded as a hex string.
- This is useful for interfacing with CIP30
Source§impl UpdateDrepCert
impl UpdateDrepCert
pub fn drep_credential(&self) -> DrepCredential
pub fn anchor(&self) -> Option<Anchor>
pub fn new(drep_credential: &DrepCredential, anchor: Option<Anchor>) -> Self
Trait Implementations§
Source§impl AsRef<UpdateDrepCert> for UpdateDrepCert
impl AsRef<UpdateDrepCert> for UpdateDrepCert
Source§fn as_ref(&self) -> &UpdateDrepCert
fn as_ref(&self) -> &UpdateDrepCert
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for UpdateDrepCert
impl Clone for UpdateDrepCert
Source§fn clone(&self) -> UpdateDrepCert
fn clone(&self) -> UpdateDrepCert
Returns a duplicate 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 UpdateDrepCert
impl Debug for UpdateDrepCert
Source§impl From<UpdateDrepCert> for JsValue
impl From<UpdateDrepCert> for JsValue
Source§fn from(value: UpdateDrepCert) -> Self
fn from(value: UpdateDrepCert) -> Self
Converts to this type from the input type.
Source§impl From<UpdateDrepCert> for UpdateDrepCert
impl From<UpdateDrepCert> for UpdateDrepCert
Source§fn from(native: UpdateDrepCert) -> Self
fn from(native: UpdateDrepCert) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for UpdateDrepCert
impl FromWasmAbi for UpdateDrepCert
Source§impl Into<UpdateDrepCert> for UpdateDrepCert
impl Into<UpdateDrepCert> for UpdateDrepCert
Source§fn into(self) -> UpdateDrepCert
fn into(self) -> UpdateDrepCert
Converts this type into the (usually inferred) input type.
Source§impl IntoWasmAbi for UpdateDrepCert
impl IntoWasmAbi for UpdateDrepCert
Source§impl LongRefFromWasmAbi for UpdateDrepCert
impl LongRefFromWasmAbi for UpdateDrepCert
Source§impl OptionFromWasmAbi for UpdateDrepCert
impl OptionFromWasmAbi for UpdateDrepCert
Source§impl OptionIntoWasmAbi for UpdateDrepCert
impl OptionIntoWasmAbi for UpdateDrepCert
Source§impl RefFromWasmAbi for UpdateDrepCert
impl RefFromWasmAbi for UpdateDrepCert
Source§type Anchor = RcRef<UpdateDrepCert>
type Anchor = RcRef<UpdateDrepCert>
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 UpdateDrepCert
impl RefMutFromWasmAbi for UpdateDrepCert
Source§impl TryFromJsValue for UpdateDrepCert
impl TryFromJsValue for UpdateDrepCert
Source§impl VectorFromWasmAbi for UpdateDrepCert
impl VectorFromWasmAbi for UpdateDrepCert
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[UpdateDrepCert]>
Source§impl VectorIntoJsValue for UpdateDrepCert
impl VectorIntoJsValue for UpdateDrepCert
fn vector_into_jsvalue(vector: Box<[UpdateDrepCert]>) -> JsValue
Source§impl VectorIntoWasmAbi for UpdateDrepCert
impl VectorIntoWasmAbi for UpdateDrepCert
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[UpdateDrepCert]>) -> Self::Abi
Source§impl WasmDescribeVector for UpdateDrepCert
impl WasmDescribeVector for UpdateDrepCert
impl SupportsConstructor for UpdateDrepCert
impl SupportsInstanceProperty for UpdateDrepCert
impl SupportsStaticProperty for UpdateDrepCert
Auto Trait Implementations§
impl Freeze for UpdateDrepCert
impl RefUnwindSafe for UpdateDrepCert
impl Send for UpdateDrepCert
impl Sync for UpdateDrepCert
impl Unpin for UpdateDrepCert
impl UnwindSafe for UpdateDrepCert
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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,
Source§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.