pub struct Repo {
pub dir: String,
pub namespace: Option<String>,
pub name: Option<String>,
pub depth: Option<u32>,
pub branch: Option<String>,
pub single_branch: bool,
pub clone_flags: Vec<String>,
pub pre_clone: Hooks,
pub post_clone: Hooks,
}Fields§
§dir: StringLocal destination dir (raw; $VAR/~ expanded at clone time).
namespace: Option<String>Per-repo namespace (org/group/user) — overrides the global namespace for
this repo. One of repo/global namespace must be set.
name: Option<String>Remote repo name (the URL’s last segment). Defaults to basename(dir); set
this to clone a repo into a differently-named local directory.
depth: Option<u32>§branch: Option<String>Branch (or tag) to check out after clone (--branch B). By default this is a
FULL clone parked on B (all branches fetched); set single-branch = true to
fetch only B.
single_branch: boolClone only one branch (--single-branch). Pairs with branch to fetch just
that branch; on its own (no branch) it clones only the remote’s default
branch — same as bare git clone --single-branch.
clone_flags: Vec<String>Per-repo raw flags AFTER clone.
pre_clone: Hooks§post_clone: HooksImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Repo
impl<'de> Deserialize<'de> for Repo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Repo
impl StructuralPartialEq for Repo
Auto Trait Implementations§
impl Freeze for Repo
impl RefUnwindSafe for Repo
impl Send for Repo
impl Sync for Repo
impl Unpin for Repo
impl UnsafeUnpin for Repo
impl UnwindSafe for Repo
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.