Skip to main content

NnsProposalListSort

Enum NnsProposalListSort 

Source
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

Source

pub const fn as_str(self) -> &'static str

Return the canonical filter or sort label used in reports.

Source

pub const fn default_direction(self) -> NnsProposalSortDirection

Return the default direction for this sort key.

Source

pub const fn uses_local_direction(self) -> bool

Return whether this key applies a local sort direction.

Source

pub const fn direction_label( self, direction: NnsProposalSortDirection, ) -> &'static str

Return none for API order or the selected local direction label.

Trait Implementations§

Source§

impl Clone for NnsProposalListSort

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for NnsProposalListSort

Source§

impl Debug for NnsProposalListSort

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for NnsProposalListSort

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for NnsProposalListSort

Source§

impl PartialEq for NnsProposalListSort

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for NnsProposalListSort

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.