pub struct VoteRegDelegCert(/* private fields */);Implementations§
Source§impl VoteRegDelegCert
impl VoteRegDelegCert
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<VoteRegDelegCert, JsError>
pub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<VoteRegDelegCert, 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<VoteRegDelegCert, JsError>
pub fn from_cbor_hex(cbor_bytes: &str) -> Result<VoteRegDelegCert, JsError>
- Create this type from the CBOR bytes encoded as a hex string.
- This is useful for interfacing with CIP30
Source§impl VoteRegDelegCert
impl VoteRegDelegCert
pub fn stake_credential(&self) -> StakeCredential
pub fn d_rep(&self) -> DRep
pub fn deposit(&self) -> Coin
pub fn new( stake_credential: &StakeCredential, d_rep: &DRep, deposit: Coin, ) -> Self
Trait Implementations§
Source§impl AsRef<VoteRegDelegCert> for VoteRegDelegCert
impl AsRef<VoteRegDelegCert> for VoteRegDelegCert
Source§fn as_ref(&self) -> &VoteRegDelegCert
fn as_ref(&self) -> &VoteRegDelegCert
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for VoteRegDelegCert
impl Clone for VoteRegDelegCert
Source§fn clone(&self) -> VoteRegDelegCert
fn clone(&self) -> VoteRegDelegCert
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 VoteRegDelegCert
impl Debug for VoteRegDelegCert
Source§impl From<VoteRegDelegCert> for JsValue
impl From<VoteRegDelegCert> for JsValue
Source§fn from(value: VoteRegDelegCert) -> Self
fn from(value: VoteRegDelegCert) -> Self
Converts to this type from the input type.
Source§impl From<VoteRegDelegCert> for VoteRegDelegCert
impl From<VoteRegDelegCert> for VoteRegDelegCert
Source§fn from(native: VoteRegDelegCert) -> Self
fn from(native: VoteRegDelegCert) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for VoteRegDelegCert
impl FromWasmAbi for VoteRegDelegCert
Source§impl Into<VoteRegDelegCert> for VoteRegDelegCert
impl Into<VoteRegDelegCert> for VoteRegDelegCert
Source§fn into(self) -> VoteRegDelegCert
fn into(self) -> VoteRegDelegCert
Converts this type into the (usually inferred) input type.
Source§impl IntoWasmAbi for VoteRegDelegCert
impl IntoWasmAbi for VoteRegDelegCert
Source§impl OptionFromWasmAbi for VoteRegDelegCert
impl OptionFromWasmAbi for VoteRegDelegCert
Source§impl OptionIntoWasmAbi for VoteRegDelegCert
impl OptionIntoWasmAbi for VoteRegDelegCert
Source§impl RefFromWasmAbi for VoteRegDelegCert
impl RefFromWasmAbi for VoteRegDelegCert
Source§type Anchor = RcRef<VoteRegDelegCert>
type Anchor = RcRef<VoteRegDelegCert>
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 VoteRegDelegCert
impl RefMutFromWasmAbi for VoteRegDelegCert
Source§impl TryFromJsValue for VoteRegDelegCert
impl TryFromJsValue for VoteRegDelegCert
Source§impl VectorFromWasmAbi for VoteRegDelegCert
impl VectorFromWasmAbi for VoteRegDelegCert
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[VoteRegDelegCert]>
Source§impl VectorIntoJsValue for VoteRegDelegCert
impl VectorIntoJsValue for VoteRegDelegCert
fn vector_into_jsvalue(vector: Box<[VoteRegDelegCert]>) -> JsValue
Source§impl VectorIntoWasmAbi for VoteRegDelegCert
impl VectorIntoWasmAbi for VoteRegDelegCert
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[VoteRegDelegCert]>) -> Self::Abi
Source§impl WasmDescribeVector for VoteRegDelegCert
impl WasmDescribeVector for VoteRegDelegCert
impl SupportsConstructor for VoteRegDelegCert
impl SupportsInstanceProperty for VoteRegDelegCert
impl SupportsStaticProperty for VoteRegDelegCert
Auto Trait Implementations§
impl Freeze for VoteRegDelegCert
impl RefUnwindSafe for VoteRegDelegCert
impl Send for VoteRegDelegCert
impl Sync for VoteRegDelegCert
impl Unpin for VoteRegDelegCert
impl UnwindSafe for VoteRegDelegCert
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.