pub struct GitSource {
pub repo_url: String,
pub tag: Option<String>,
pub git_ref: Option<String>,
pub subdir: Option<String>,
}Expand description
Parsed git file source URL.
Fields§
§repo_url: StringThe repo URL (without tag/ref/subdir suffixes).
tag: Option<String>Tag to checkout (from @tag suffix).
git_ref: Option<String>Branch/ref to checkout (from ?ref=branch suffix).
subdir: Option<String>Subdirectory within the repo (from //subdir separator).
Trait Implementations§
impl Eq for GitSource
impl StructuralPartialEq for GitSource
Auto Trait Implementations§
impl Freeze for GitSource
impl RefUnwindSafe for GitSource
impl Send for GitSource
impl Sync for GitSource
impl Unpin for GitSource
impl UnsafeUnpin for GitSource
impl UnwindSafe for GitSource
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§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.