pub enum NnsProposalListSort {
Show 21 variants
Api,
Id,
Status,
RewardStatus,
Topic,
Proposer,
Title,
Action,
Yes,
No,
TotalVotes,
TallyTime,
VotingPower,
Ballots,
RejectCost,
RewardRound,
Proposed,
Deadline,
Decided,
Executed,
Failed,
}Expand description
NnsProposalListSort
Report-model sort selector for NNS proposal listings.
Variants§
Api
Preserve the descending proposal-id order returned by Governance.
Id
Sort by proposal id.
Status
Sort by the raw decision-status code.
RewardStatus
Sort by the raw reward-settlement code.
Topic
Sort by the raw topic code.
Proposer
Sort by proposer neuron id.
Title
Sort by proposal title.
Action
Sort by the human-readable action classification.
Yes
Sort by affirmative voting power in the latest tally.
No
Sort by negative voting power in the latest tally.
TotalVotes
Sort by total voting power in the latest tally.
TallyTime
Sort by the latest tally timestamp.
VotingPower
Sort by total potential voting power.
Ballots
Sort by ballot count returned by Governance.
RejectCost
Sort by reject cost in ICP e8s.
RewardRound
Sort by reward event round.
Proposed
Sort by proposal creation time.
Deadline
Sort by voting deadline.
Decided
Sort by decision time.
Executed
Sort by execution time.
Failed
Sort by execution failure time.
Implementations§
Source§impl NnsProposalListSort
impl NnsProposalListSort
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
Return the canonical filter or sort label used in reports.
Sourcepub const fn default_direction(self) -> NnsProposalSortDirection
pub const fn default_direction(self) -> NnsProposalSortDirection
Return the default direction for this sort key.
Sourcepub const fn uses_local_direction(self) -> bool
pub const fn uses_local_direction(self) -> bool
Return whether this key applies a local sort direction.
Sourcepub const fn direction_label(
self,
direction: NnsProposalSortDirection,
) -> &'static str
pub const fn direction_label( self, direction: NnsProposalSortDirection, ) -> &'static str
Return none for API order or the selected local direction label.