pub enum SnsProposalVote {
Unspecified,
Yes,
No,
Unknown(i32),
}Expand description
SnsProposalVote
Native SNS Governance ballot vote, retaining unknown raw codes.
Variants§
Unspecified
No native vote was specified.
Yes
Affirmative ballot.
No
Negative ballot.
Unknown(i32)
An unrecognized native vote code retained as evidence.
Implementations§
Trait Implementations§
Source§impl Clone for SnsProposalVote
impl Clone for SnsProposalVote
Source§fn clone(&self) -> SnsProposalVote
fn clone(&self) -> SnsProposalVote
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SnsProposalVote
Source§impl Debug for SnsProposalVote
impl Debug for SnsProposalVote
Source§impl<'de> Deserialize<'de> for SnsProposalVote
impl<'de> Deserialize<'de> for SnsProposalVote
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SnsProposalVote
impl Display for SnsProposalVote
impl Eq for SnsProposalVote
Source§impl Ord for SnsProposalVote
impl Ord for SnsProposalVote
Source§fn cmp(&self, other: &SnsProposalVote) -> Ordering
fn cmp(&self, other: &SnsProposalVote) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SnsProposalVote
impl PartialEq for SnsProposalVote
Source§impl PartialOrd for SnsProposalVote
impl PartialOrd for SnsProposalVote
Source§impl Serialize for SnsProposalVote
impl Serialize for SnsProposalVote
impl StructuralPartialEq for SnsProposalVote
Auto Trait Implementations§
impl Freeze for SnsProposalVote
impl RefUnwindSafe for SnsProposalVote
impl Send for SnsProposalVote
impl Sync for SnsProposalVote
impl Unpin for SnsProposalVote
impl UnsafeUnpin for SnsProposalVote
impl UnwindSafe for SnsProposalVote
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