Struct cml_chain_wasm::governance::NewCommittee
source · pub struct NewCommittee(/* private fields */);Implementations§
source§impl NewCommittee
impl NewCommittee
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 from_cbor_bytes(cbor_bytes: &[u8]) -> Result<NewCommittee, JsError>
pub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<NewCommittee, 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 from_cbor_hex(cbor_bytes: &str) -> Result<NewCommittee, JsError>
pub fn from_cbor_hex(cbor_bytes: &str) -> Result<NewCommittee, JsError>
- Create this type from the CBOR bytes encoded as a hex string.
- This is useful for interfacing with CIP30
source§impl NewCommittee
impl NewCommittee
source§impl NewCommittee
impl NewCommittee
pub fn action_id(&self) -> Option<GovActionId>
pub fn cold_credentials(&self) -> CommitteeColdCredentialList
pub fn committee(&self) -> Committee
pub fn new( action_id: Option<GovActionId>, cold_credentials: &CommitteeColdCredentialList, committee: &Committee ) -> Self
Trait Implementations§
source§impl AsRef<NewCommittee> for NewCommittee
impl AsRef<NewCommittee> for NewCommittee
source§fn as_ref(&self) -> &NewCommittee
fn as_ref(&self) -> &NewCommittee
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for NewCommittee
impl Clone for NewCommittee
source§fn clone(&self) -> NewCommittee
fn clone(&self) -> NewCommittee
Returns a copy 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 NewCommittee
impl Debug for NewCommittee
source§impl From<NewCommittee> for JsValue
impl From<NewCommittee> for JsValue
source§fn from(value: NewCommittee) -> Self
fn from(value: NewCommittee) -> Self
Converts to this type from the input type.
source§impl From<NewCommittee> for NewCommittee
impl From<NewCommittee> for NewCommittee
source§fn from(native: NewCommittee) -> Self
fn from(native: NewCommittee) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for NewCommittee
impl FromWasmAbi for NewCommittee
source§impl Into<NewCommittee> for NewCommittee
impl Into<NewCommittee> for NewCommittee
source§fn into(self) -> NewCommittee
fn into(self) -> NewCommittee
Converts this type into the (usually inferred) input type.
source§impl IntoWasmAbi for NewCommittee
impl IntoWasmAbi for NewCommittee
source§impl OptionFromWasmAbi for NewCommittee
impl OptionFromWasmAbi for NewCommittee
source§impl OptionIntoWasmAbi for NewCommittee
impl OptionIntoWasmAbi for NewCommittee
source§impl RefFromWasmAbi for NewCommittee
impl RefFromWasmAbi for NewCommittee
§type Anchor = Ref<'static, NewCommittee>
type Anchor = Ref<'static, NewCommittee>
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 NewCommittee
impl RefMutFromWasmAbi for NewCommittee
Auto Trait Implementations§
impl Freeze for NewCommittee
impl RefUnwindSafe for NewCommittee
impl Send for NewCommittee
impl Sync for NewCommittee
impl Unpin for NewCommittee
impl UnwindSafe for NewCommittee
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§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.