pub struct SearchArgs {Show 13 fields
pub query: Option<String>,
pub print: bool,
pub limit: usize,
pub project: Option<String>,
pub branch: Option<String>,
pub exit_code: Option<i64>,
pub failed: bool,
pub since: Option<String>,
pub before: Option<String>,
pub cwd: Option<String>,
pub shell: Option<String>,
pub json: bool,
pub id_only: bool,
}Expand description
Regroupe les options de mnemo search pour éviter une fonction à trop
d’arguments (filtres combinables passés en un bloc).
Fields§
§query: Option<String>§print: bool§limit: usize§project: Option<String>§branch: Option<String>§exit_code: Option<i64>§failed: bool§since: Option<String>§before: Option<String>§cwd: Option<String>§shell: Option<String>§json: bool§id_only: boolTrait Implementations§
Source§impl Debug for SearchArgs
impl Debug for SearchArgs
Source§impl Default for SearchArgs
impl Default for SearchArgs
Source§fn default() -> SearchArgs
fn default() -> SearchArgs
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SearchArgs
impl RefUnwindSafe for SearchArgs
impl Send for SearchArgs
impl Sync for SearchArgs
impl Unpin for SearchArgs
impl UnsafeUnpin for SearchArgs
impl UnwindSafe for SearchArgs
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
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