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