pub struct SubmoduleAddOptions {
pub name: SubmoduleName,
pub path: PathBuf,
pub url: String,
pub branch: Option<SerializableBranch>,
pub ignore: Option<SerializableIgnore>,
pub update: Option<SerializableUpdate>,
pub fetch_recurse: Option<SerializableFetchRecurse>,
pub shallow: bool,
pub no_init: bool,
}Expand description
Options for adding a submodule
Fields§
§name: SubmoduleNameName of the submodule
path: PathBufLocal path where the submodule will be checked out
url: StringURL of the submodule repository
branch: Option<SerializableBranch>Branch to track (optional)
ignore: Option<SerializableIgnore>Ignore rule for the submodule (optional)
update: Option<SerializableUpdate>Update strategy for the submodule (optional)
fetch_recurse: Option<SerializableFetchRecurse>Fetch recurse setting (optional)
shallow: boolWhether to create a shallow clone
no_init: boolWhether to skip initialization after adding
Implementations§
Source§impl SubmoduleAddOptions
impl SubmoduleAddOptions
Sourcepub fn into_submodule_entry(self) -> SubmoduleEntry
pub fn into_submodule_entry(self) -> SubmoduleEntry
Create an add options from a SubmoduleEntry
Sourcepub fn from_submodule_entries_tuple(
entry: (SubmoduleName, SubmoduleEntry),
) -> Self
pub fn from_submodule_entries_tuple( entry: (SubmoduleName, SubmoduleEntry), ) -> Self
Create an add options from a entries tuple (name and SubmoduleEntry)
Sourcepub fn into_entries_tuple(self) -> (SubmoduleName, SubmoduleEntry)
pub fn into_entries_tuple(self) -> (SubmoduleName, SubmoduleEntry)
Convert an AddOptions to a SubmoduleEntries tuple
Trait Implementations§
Source§impl Clone for SubmoduleAddOptions
impl Clone for SubmoduleAddOptions
Source§fn clone(&self) -> SubmoduleAddOptions
fn clone(&self) -> SubmoduleAddOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 SubmoduleAddOptions
impl RefUnwindSafe for SubmoduleAddOptions
impl Send for SubmoduleAddOptions
impl Sync for SubmoduleAddOptions
impl Unpin for SubmoduleAddOptions
impl UnsafeUnpin for SubmoduleAddOptions
impl UnwindSafe for SubmoduleAddOptions
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