pub enum ObligationSort {
Due,
Created,
}Expand description
The order of get_governance_log’s obligations view (0.72)
Variants§
Due
Earliest due first, so lapsed and overdue items lead; ties to the older, undated last, oldest first. The default
Created
Oldest first
Implementations§
Source§impl ObligationSort
impl ObligationSort
Sourcepub fn sort(self, rows: &mut [ResolvedObligation])
pub fn sort(self, rows: &mut [ResolvedObligation])
Order rows for the to-do list.
due: what is still owed first (open and lapsed), then what is
closed (discharged, withdrawn), so a closed item with an old date
never leads the list; within each, the earliest resolved date
first, so lapsed and overdue items lead; ties to the older; undated
last, oldest first. created: oldest first. Both end on the id, so
the order is total and pages neither repeat nor skip.
Trait Implementations§
Source§impl Clone for ObligationSort
impl Clone for ObligationSort
impl Copy for ObligationSort
Source§impl Debug for ObligationSort
impl Debug for ObligationSort
Source§impl Default for ObligationSort
impl Default for ObligationSort
Source§impl<'de> Deserialize<'de> for ObligationSort
impl<'de> Deserialize<'de> for ObligationSort
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 ObligationSort
impl Display for ObligationSort
impl Eq for ObligationSort
Source§impl FromStr for ObligationSort
impl FromStr for ObligationSort
Source§impl PartialEq for ObligationSort
impl PartialEq for ObligationSort
Source§impl Serialize for ObligationSort
impl Serialize for ObligationSort
impl StructuralPartialEq for ObligationSort
Auto Trait Implementations§
impl Freeze for ObligationSort
impl RefUnwindSafe for ObligationSort
impl Send for ObligationSort
impl Sync for ObligationSort
impl Unpin for ObligationSort
impl UnsafeUnpin for ObligationSort
impl UnwindSafe for ObligationSort
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T, O> Matches<O> for Twhere
T: PartialEq<O>,
impl<T, O> Matches<O> for Twhere
T: PartialEq<O>,
fn validate_matches(&self, other: &O) -> bool
impl<T> PendingHandle for Twhere
T: Send + 'static,
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more