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