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