pub struct Submodule {
pub path: String,
pub sha: String,
pub url: Option<String>,
}Expand description
A git submodule pinned in a tree: its repo-relative path, the commit it points
at (the gitlink oid — the version pin a deployment ships), and its
configured URL from .gitmodules when registered there.
Fields§
§path: StringRepo-relative path the submodule is mounted at.
sha: StringHex commit id the gitlink points at (the pinned version).
url: Option<String>The submodule’s URL from .gitmodules, if declared there.
Trait Implementations§
impl Eq for Submodule
impl StructuralPartialEq for Submodule
Auto Trait Implementations§
impl Freeze for Submodule
impl RefUnwindSafe for Submodule
impl Send for Submodule
impl Sync for Submodule
impl Unpin for Submodule
impl UnsafeUnpin for Submodule
impl UnwindSafe for Submodule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.