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