pub struct Ref {
pub version: Option<Version>,
pub tag: Option<String>,
pub commit: Option<String>,
pub origin: Origin,
}Expand description
A package’s resolved version: the tag it was selected at (version and tag), or a pinned
ref (tag only), or neither for a default branch or a path.
Fields§
§version: Option<Version>§tag: Option<String>§commit: Option<String>§origin: OriginTrait Implementations§
impl Eq for Ref
impl StructuralPartialEq for Ref
Auto Trait Implementations§
impl Forget for Ref
impl Freeze for Ref
impl Move for Ref
impl RefUnwindSafe for Ref
impl Send for Ref
impl Sync for Ref
impl Unpin for Ref
impl UnsafeUnpin for Ref
impl UnwindSafe for Ref
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.