#[non_exhaustive]pub struct SparseCheckoutSet {
pub patterns: Vec<String>,
pub cone: bool,
}Expand description
Options for GitApi::sparse_checkout_set (git sparse-checkout set).
#[non_exhaustive], so build it through SparseCheckoutSet::new and the
non_cone setter rather than a bare boolean
that would make the selected matching mode ambiguous at the call site.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.patterns: Vec<String>Directories in cone mode, or gitignore-style patterns in non-cone mode. The list must contain at least one non-empty, non-flag-like value.
cone: boolWhether git should interpret patterns as cone directories (--cone).
Implementations§
Trait Implementations§
Source§impl Clone for SparseCheckoutSet
impl Clone for SparseCheckoutSet
Source§fn clone(&self) -> SparseCheckoutSet
fn clone(&self) -> SparseCheckoutSet
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 SparseCheckoutSet
impl Debug for SparseCheckoutSet
impl Eq for SparseCheckoutSet
Source§impl PartialEq for SparseCheckoutSet
impl PartialEq for SparseCheckoutSet
impl StructuralPartialEq for SparseCheckoutSet
Auto Trait Implementations§
impl Freeze for SparseCheckoutSet
impl RefUnwindSafe for SparseCheckoutSet
impl Send for SparseCheckoutSet
impl Sync for SparseCheckoutSet
impl Unpin for SparseCheckoutSet
impl UnsafeUnpin for SparseCheckoutSet
impl UnwindSafe for SparseCheckoutSet
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