#[non_exhaustive]pub struct CloneOptions {
pub url: String,
pub depth: Option<u32>,
pub ref: Option<String>,
pub index: bool,
}Expand description
Options controlling how a repository is cloned or updated.
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.url: StringRemote URL to clone from.
depth: Option<u32>Shallow clone depth. None performs a full clone.
ref: Option<String>Branch, tag, or commit ref to check out after cloning.
index: boolWhether to trigger semantic indexing after a successful clone.
Implementations§
Trait Implementations§
Source§impl Clone for CloneOptions
impl Clone for CloneOptions
Source§fn clone(&self) -> CloneOptions
fn clone(&self) -> CloneOptions
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 moreAuto Trait Implementations§
impl Freeze for CloneOptions
impl RefUnwindSafe for CloneOptions
impl Send for CloneOptions
impl Sync for CloneOptions
impl Unpin for CloneOptions
impl UnsafeUnpin for CloneOptions
impl UnwindSafe for CloneOptions
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