pub struct LogFilters {
pub max_count: usize,
pub author: Option<String>,
pub paths: Option<Vec<String>>,
pub since: Option<i64>,
pub grep: Option<String>,
}Expand description
Optional narrowing for GitModule::log. All fields are AND-combined; an
absent field imposes no constraint.
Fields§
§max_count: usizeCap on how many matching commits to return (post-filter).
Case-sensitive substring match against "Name <email>".
paths: Option<Vec<String>>Git pathspec entries; a commit is kept when its diff against its first parent (or against the empty tree for the root commit) touches at least one entry. Empty vec is treated as “no path filter”.
since: Option<i64>Keep only commits whose author time is >= this value (unix epoch
seconds).
grep: Option<String>Case-sensitive substring match against the full commit message (subject + body).
Trait Implementations§
Source§impl Clone for LogFilters
impl Clone for LogFilters
Source§fn clone(&self) -> LogFilters
fn clone(&self) -> LogFilters
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LogFilters
impl Debug for LogFilters
Source§impl Default for LogFilters
impl Default for LogFilters
Source§fn default() -> LogFilters
fn default() -> LogFilters
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LogFilters
impl RefUnwindSafe for LogFilters
impl Send for LogFilters
impl Sync for LogFilters
impl Unpin for LogFilters
impl UnsafeUnpin for LogFilters
impl UnwindSafe for LogFilters
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