pub enum GovActionKind {
ParameterChangeAction,
HardForkInitiationAction,
TreasuryWithdrawalsAction,
NoConfidence,
UpdateCommittee,
NewConstitution,
InfoAction,
}Variants§
ParameterChangeAction
HardForkInitiationAction
TreasuryWithdrawalsAction
NoConfidence
UpdateCommittee
NewConstitution
InfoAction
Trait Implementations§
Source§impl From<GovActionKind> for JsValue
impl From<GovActionKind> for JsValue
Source§fn from(value: GovActionKind) -> Self
fn from(value: GovActionKind) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for GovActionKind
impl FromWasmAbi for GovActionKind
Source§impl IntoWasmAbi for GovActionKind
impl IntoWasmAbi for GovActionKind
Source§impl OptionFromWasmAbi for GovActionKind
impl OptionFromWasmAbi for GovActionKind
Source§impl OptionIntoWasmAbi for GovActionKind
impl OptionIntoWasmAbi for GovActionKind
Source§impl TryFromJsValue for GovActionKind
impl TryFromJsValue for GovActionKind
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <GovActionKind as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <GovActionKind as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for GovActionKind
impl VectorFromWasmAbi for GovActionKind
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[GovActionKind]>
Source§impl VectorIntoJsValue for GovActionKind
impl VectorIntoJsValue for GovActionKind
fn vector_into_jsvalue(vector: Box<[GovActionKind]>) -> JsValue
Source§impl VectorIntoWasmAbi for GovActionKind
impl VectorIntoWasmAbi for GovActionKind
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[GovActionKind]>) -> Self::Abi
Source§impl WasmDescribeVector for GovActionKind
impl WasmDescribeVector for GovActionKind
Auto Trait Implementations§
impl Freeze for GovActionKind
impl RefUnwindSafe for GovActionKind
impl Send for GovActionKind
impl Sync for GovActionKind
impl Unpin for GovActionKind
impl UnwindSafe for GovActionKind
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> 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.