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