pub struct SortConfig {
pub enabled: bool,
pub slice: Option<String>,
}Expand description
Sorting configuration.
Fields§
§enabled: boolEnable two-pass chronological sorting.
slice: Option<String>Time-slice interval for splitting output (e.g. "1h", "1d").
Trait Implementations§
Source§impl Debug for SortConfig
impl Debug for SortConfig
Source§impl Default for SortConfig
impl Default for SortConfig
Source§fn default() -> SortConfig
fn default() -> SortConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SortConfig
impl<'de> Deserialize<'de> for SortConfig
Source§fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>
fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>
Given a mutable
Value, allows you to deserialize the type from it,
or accumulate 1 or more errorsAuto Trait Implementations§
impl Freeze for SortConfig
impl RefUnwindSafe for SortConfig
impl Send for SortConfig
impl Sync for SortConfig
impl Unpin for SortConfig
impl UnsafeUnpin for SortConfig
impl UnwindSafe for SortConfig
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more