pub struct ODataOrderBy(pub Vec<OrderKey>);Tuple Fields§
§0: Vec<OrderKey>Implementations§
Source§impl ODataOrderBy
impl ODataOrderBy
pub fn empty() -> Self
pub fn is_empty(&self) -> bool
Sourcepub fn to_signed_tokens(&self) -> String
pub fn to_signed_tokens(&self) -> String
Render as “+f1,-f2” for cursor.s
Sourcepub fn from_signed_tokens(signed: &str) -> Result<Self, Error>
pub fn from_signed_tokens(signed: &str) -> Result<Self, Error>
Parse signed tokens back to ODataOrderBy (e.g. “+a,-b” -> ODataOrderBy)
Returns Error for stricter validation used in cursor processing
§Errors
Returns Error::InvalidOrderByField if the input is empty or contains invalid field names.
Sourcepub fn equals_signed_tokens(&self, signed: &str) -> bool
pub fn equals_signed_tokens(&self, signed: &str) -> bool
Check equality against signed token list (e.g. “+a,-b”)
Sourcepub fn ensure_tiebreaker(self, tiebreaker: &str, dir: SortDir) -> Self
pub fn ensure_tiebreaker(self, tiebreaker: &str, dir: SortDir) -> Self
Append tiebreaker if missing
Sourcepub fn reverse_directions(self) -> Self
pub fn reverse_directions(self) -> Self
Reverse all sort directions (for backward pagination)
Trait Implementations§
Source§impl Clone for ODataOrderBy
impl Clone for ODataOrderBy
Source§fn clone(&self) -> ODataOrderBy
fn clone(&self) -> ODataOrderBy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ODataOrderBy
impl Debug for ODataOrderBy
Source§impl Default for ODataOrderBy
impl Default for ODataOrderBy
Source§fn default() -> ODataOrderBy
fn default() -> ODataOrderBy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ODataOrderBy
impl RefUnwindSafe for ODataOrderBy
impl Send for ODataOrderBy
impl Sync for ODataOrderBy
impl Unpin for ODataOrderBy
impl UnsafeUnpin for ODataOrderBy
impl UnwindSafe for ODataOrderBy
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