pub enum SortEntry {
Preset(SortPreset),
Explicit(Sort),
}Expand description
Sort configuration: either a preset name or explicit configuration.
Can be a preset name like author-date-title or a full Sort struct with explicit settings.
Variants§
Preset(SortPreset)
A named sort preset (e.g., author-date-title, author-title-date).
Explicit(Sort)
Explicit sort configuration with custom keys and order.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SortEntry
impl<'de> Deserialize<'de> for SortEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SortEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SortEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SortEntry
impl Serialize for SortEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SortEntry
Auto Trait Implementations§
impl Freeze for SortEntry
impl RefUnwindSafe for SortEntry
impl Send for SortEntry
impl Sync for SortEntry
impl Unpin for SortEntry
impl UnsafeUnpin for SortEntry
impl UnwindSafe for SortEntry
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