Enum fadroma::ensemble::ResponseVariants
source · #[non_exhaustive]pub enum ResponseVariants {
Instantiate(InstantiateResponse),
Execute(ExecuteResponse),
Reply(ReplyResponse),
Bank(BankResponse),
Staking(StakingResponse),
Distribution(DistributionResponse),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Instantiate(InstantiateResponse)
Execute(ExecuteResponse)
Reply(ReplyResponse)
Bank(BankResponse)
Staking(StakingResponse)
Distribution(DistributionResponse)
Implementations§
source§impl ResponseVariants
impl ResponseVariants
pub fn is_instantiate(&self) -> bool
pub fn is_execute(&self) -> bool
pub fn is_reply(&self) -> bool
pub fn is_bank(&self) -> bool
pub fn is_staking(&self) -> bool
pub fn is_distribution(&self) -> bool
Trait Implementations§
source§impl Clone for ResponseVariants
impl Clone for ResponseVariants
source§fn clone(&self) -> ResponseVariants
fn clone(&self) -> ResponseVariants
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 ResponseVariants
impl Debug for ResponseVariants
source§impl From<BankResponse> for ResponseVariants
impl From<BankResponse> for ResponseVariants
source§fn from(value: BankResponse) -> Self
fn from(value: BankResponse) -> Self
Converts to this type from the input type.
source§impl From<DistributionResponse> for ResponseVariants
impl From<DistributionResponse> for ResponseVariants
source§fn from(value: DistributionResponse) -> Self
fn from(value: DistributionResponse) -> Self
Converts to this type from the input type.
source§impl From<ExecuteResponse> for ResponseVariants
impl From<ExecuteResponse> for ResponseVariants
source§fn from(value: ExecuteResponse) -> Self
fn from(value: ExecuteResponse) -> Self
Converts to this type from the input type.
source§impl From<InstantiateResponse> for ResponseVariants
impl From<InstantiateResponse> for ResponseVariants
source§fn from(value: InstantiateResponse) -> Self
fn from(value: InstantiateResponse) -> Self
Converts to this type from the input type.
source§impl From<ReplyResponse> for ResponseVariants
impl From<ReplyResponse> for ResponseVariants
source§fn from(value: ReplyResponse) -> Self
fn from(value: ReplyResponse) -> Self
Converts to this type from the input type.
source§impl From<StakingResponse> for ResponseVariants
impl From<StakingResponse> for ResponseVariants
source§fn from(value: StakingResponse) -> Self
fn from(value: StakingResponse) -> Self
Converts to this type from the input type.
source§impl PartialEq<ResponseVariants> for ResponseVariants
impl PartialEq<ResponseVariants> for ResponseVariants
source§fn eq(&self, other: &ResponseVariants) -> bool
fn eq(&self, other: &ResponseVariants) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResponseVariants
Auto Trait Implementations§
impl RefUnwindSafe for ResponseVariants
impl Send for ResponseVariants
impl Sync for ResponseVariants
impl Unpin for ResponseVariants
impl UnwindSafe for ResponseVariants
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