pub struct SourceRepository<'a> {
pub kind: Option<&'a str>,
pub repo_type: Option<&'a str>,
pub location: Option<&'a str>,
pub tag: Option<&'a str>,
pub branch: Option<&'a str>,
pub subdir: Option<&'a str>,
pub other_fields: Vec<Field<'a>>,
pub cst_node: NodeId,
}Expand description
A source-repository section.
Fields§
§kind: Option<&'a str>The kind (e.g. "head", "this").
repo_type: Option<&'a str>Repository type (e.g. "git", "darcs").
location: Option<&'a str>Repository location URL.
tag: Option<&'a str>Tag, if specified.
branch: Option<&'a str>Branch, if specified.
subdir: Option<&'a str>Subdir, if specified.
other_fields: Vec<Field<'a>>All other fields.
cst_node: NodeIdBack-reference to the CST section node.
Trait Implementations§
Source§impl<'a> Clone for SourceRepository<'a>
impl<'a> Clone for SourceRepository<'a>
Source§fn clone(&self) -> SourceRepository<'a>
fn clone(&self) -> SourceRepository<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for SourceRepository<'a>
impl<'a> Debug for SourceRepository<'a>
Source§impl<'a> PartialEq for SourceRepository<'a>
impl<'a> PartialEq for SourceRepository<'a>
Source§fn eq(&self, other: &SourceRepository<'a>) -> bool
fn eq(&self, other: &SourceRepository<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> Eq for SourceRepository<'a>
impl<'a> StructuralPartialEq for SourceRepository<'a>
Auto Trait Implementations§
impl<'a> Freeze for SourceRepository<'a>
impl<'a> RefUnwindSafe for SourceRepository<'a>
impl<'a> Send for SourceRepository<'a>
impl<'a> Sync for SourceRepository<'a>
impl<'a> Unpin for SourceRepository<'a>
impl<'a> UnsafeUnpin for SourceRepository<'a>
impl<'a> UnwindSafe for SourceRepository<'a>
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