pub struct CloneOptions<'a> {
pub url: &'a str,
pub path: &'a Path,
pub depth: Option<usize>,
pub branch: Option<&'a str>,
pub filter: Option<&'a str>,
pub bare: bool,
}Expand description
Options for Repository::clone.
Fields§
§url: &'a strURL to clone from.
path: &'a PathLocal path to clone into.
depth: Option<usize>Limit cloning to the specified number of commits.
branch: Option<&'a str>Clone only the specified branch.
filter: Option<&'a str>Partial clone filter (e.g. blob:none, tree:0).
bare: boolPerform a bare clone.
Trait Implementations§
Source§impl<'a> Clone for CloneOptions<'a>
impl<'a> Clone for CloneOptions<'a>
Source§fn clone(&self) -> CloneOptions<'a>
fn clone(&self) -> CloneOptions<'a>
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<'a> Debug for CloneOptions<'a>
impl<'a> Debug for CloneOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for CloneOptions<'a>
impl<'a> RefUnwindSafe for CloneOptions<'a>
impl<'a> Send for CloneOptions<'a>
impl<'a> Sync for CloneOptions<'a>
impl<'a> Unpin for CloneOptions<'a>
impl<'a> UnsafeUnpin for CloneOptions<'a>
impl<'a> UnwindSafe for CloneOptions<'a>
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