pub enum VcsInfo {
Bzr {
fragment: Option<BzrFragment>,
},
Fossil {
fragment: Option<FossilFragment>,
},
Git {
fragment: Option<GitFragment>,
signed: bool,
},
Hg {
fragment: Option<HgFragment>,
},
Svn {
fragment: Option<SvnFragment>,
},
}Expand description
Information on Version Control Systems (VCS) using a URL.
Several different VCS systems can be used in the context of a SourceUrl.
Each system supports addressing different types of objects and may optionally require signature
verification for those objects.
Variants§
Bzr
Bazaar/Breezy VCS information.
Fields
§
fragment: Option<BzrFragment>Optional URL fragment information.
Fossil
Fossil VCS information.
Fields
§
fragment: Option<FossilFragment>Optional URL fragment information.
Git
Git VCS information.
Fields
§
fragment: Option<GitFragment>Optional URL fragment information.
Hg
Mercurial VCS information.
Fields
§
fragment: Option<HgFragment>Optional URL fragment information.
Svn
Apache Subversion VCS information.
Fields
§
fragment: Option<SvnFragment>Optional URL fragment information.
Implementations§
Source§impl VcsInfo
impl VcsInfo
Sourcefn parser(vcs: VcsProtocol) -> impl FnMut(&mut &str) -> ModalResult<VcsInfo>
fn parser(vcs: VcsProtocol) -> impl FnMut(&mut &str) -> ModalResult<VcsInfo>
Recognizes VCS-specific URL fragment and query based on a VcsProtocol.
As the parser is parameterized due to the earlier detected VcsProtocol, it returns a
new stateful parser closure.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VcsInfo
impl<'de> Deserialize<'de> for VcsInfo
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 VcsInfo
impl StructuralPartialEq for VcsInfo
Auto Trait Implementations§
impl Freeze for VcsInfo
impl RefUnwindSafe for VcsInfo
impl Send for VcsInfo
impl Sync for VcsInfo
impl Unpin for VcsInfo
impl UnwindSafe for VcsInfo
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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