pub enum SnsProposalsSort {
Show 21 variants
Api,
Id,
Status,
Topic,
Proposer,
Title,
Action,
ActionId,
Yes,
No,
TotalVotes,
TallyTime,
Ballots,
Eligible,
RejectCost,
RewardRound,
RewardEnd,
Created,
Decided,
Executed,
Failed,
}Expand description
SnsProposalsSort
Report-model sort selector for SNS proposal listings.
Variants§
Api
Id
Status
Topic
Proposer
Title
Action
ActionId
Yes
No
TotalVotes
TallyTime
Ballots
Eligible
RejectCost
RewardRound
RewardEnd
Created
Decided
Executed
Failed
Implementations§
Source§impl SnsProposalsSort
impl SnsProposalsSort
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
Return the stable label used in text and JSON reports.
Sourcepub const fn default_direction(self) -> SnsProposalSortDirection
pub const fn default_direction(self) -> SnsProposalSortDirection
Return the natural default direction for this local sort value.
Sourcepub const fn uses_local_direction(self) -> bool
pub const fn uses_local_direction(self) -> bool
Return whether this sort applies a local direction.
Sourcepub const fn direction_label(
self,
direction: SnsProposalSortDirection,
) -> &'static str
pub const fn direction_label( self, direction: SnsProposalSortDirection, ) -> &'static str
Return the stable direction label used in text and JSON reports.
Trait Implementations§
Source§impl Clone for SnsProposalsSort
impl Clone for SnsProposalsSort
Source§fn clone(&self) -> SnsProposalsSort
fn clone(&self) -> SnsProposalsSort
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 SnsProposalsSort
Source§impl Debug for SnsProposalsSort
impl Debug for SnsProposalsSort
Source§impl Default for SnsProposalsSort
impl Default for SnsProposalsSort
Source§fn default() -> SnsProposalsSort
fn default() -> SnsProposalsSort
Returns the “default value” for a type. Read more
impl Eq for SnsProposalsSort
Source§impl PartialEq for SnsProposalsSort
impl PartialEq for SnsProposalsSort
Source§fn eq(&self, other: &SnsProposalsSort) -> bool
fn eq(&self, other: &SnsProposalsSort) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SnsProposalsSort
Auto Trait Implementations§
impl Freeze for SnsProposalsSort
impl RefUnwindSafe for SnsProposalsSort
impl Send for SnsProposalsSort
impl Sync for SnsProposalsSort
impl Unpin for SnsProposalsSort
impl UnsafeUnpin for SnsProposalsSort
impl UnwindSafe for SnsProposalsSort
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