pub struct PatternEntry {
pub pattern: String,
pub source: String,
pub tracked: bool,
pub lockable: bool,
}Expand description
A single LFS-related pattern line discovered while listing.
Fields§
§pattern: StringThe pattern text exactly as it appears in the file (with any
surrounding "..." quotes stripped).
source: StringPath of the .gitattributes (or .git/info/attributes) file the
pattern was found in, relative to the repo root and with /
separators.
tracked: boolTrue if the line establishes LFS tracking (filter=lfs); false if
it explicitly removes / unspecifies the filter (-filter,
!filter, -filter=...).
lockable: boolTrue if the same line carries the lockable attribute (in set
form — lockable=false is treated as not lockable).
Trait Implementations§
Source§impl Clone for PatternEntry
impl Clone for PatternEntry
Source§fn clone(&self) -> PatternEntry
fn clone(&self) -> PatternEntry
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 PatternEntry
impl Debug for PatternEntry
Source§impl PartialEq for PatternEntry
impl PartialEq for PatternEntry
Source§fn eq(&self, other: &PatternEntry) -> bool
fn eq(&self, other: &PatternEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PatternEntry
impl StructuralPartialEq for PatternEntry
Auto Trait Implementations§
impl Freeze for PatternEntry
impl RefUnwindSafe for PatternEntry
impl Send for PatternEntry
impl Sync for PatternEntry
impl Unpin for PatternEntry
impl UnsafeUnpin for PatternEntry
impl UnwindSafe for PatternEntry
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