pub struct ExtraData<'a> {
pub branch: &'a str,
pub tags: &'a [&'a str],
}Expand description
Contains extra data about the git repository.
§Note
This will only be present if the dependency is specified as a git
dependency when used in the Cargo.toml file. When a dependency
is downloaded from crates.io, the git
history and repository metadata is not downloaded, and so this
information will not be available.
Fields§
§branch: &'a strThe name of the branch.
Tags associated with the current commit.
Trait Implementations§
impl<'a> Copy for ExtraData<'a>
impl<'a> Eq for ExtraData<'a>
impl<'a> StructuralPartialEq for ExtraData<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExtraData<'a>
impl<'a> RefUnwindSafe for ExtraData<'a>
impl<'a> Send for ExtraData<'a>
impl<'a> Sync for ExtraData<'a>
impl<'a> Unpin for ExtraData<'a>
impl<'a> UnsafeUnpin for ExtraData<'a>
impl<'a> UnwindSafe for ExtraData<'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