pub struct DependencyRawValue {
pub version: Option<String>,
pub git: Option<String>,
pub rev: Option<String>,
pub branch: Option<String>,
pub tag: Option<String>,
pub path: Option<String>,
}
Fields§
§version: Option<String>
§git: Option<String>
§rev: Option<String>
§branch: Option<String>
§tag: Option<String>
§path: Option<String>
Implementations§
Source§impl DependencyRawValue
impl DependencyRawValue
Sourcepub fn interpret(self) -> DependencyReference
pub fn interpret(self) -> DependencyReference
Interprets the raw dependency value as one of several possible formats.
Source§impl DependencyRawValue
impl DependencyRawValue
pub fn from_version(version: &str) -> Self
pub fn parse_toml_value(toml_value: &Value) -> Self
pub fn into_toml_value(self) -> Value
Trait Implementations§
Source§impl Clone for DependencyRawValue
impl Clone for DependencyRawValue
Source§fn clone(&self) -> DependencyRawValue
fn clone(&self) -> DependencyRawValue
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DependencyRawValue
impl Debug for DependencyRawValue
Source§impl Default for DependencyRawValue
impl Default for DependencyRawValue
Source§fn default() -> DependencyRawValue
fn default() -> DependencyRawValue
Returns the “default value” for a type. Read more
Source§impl PartialEq for DependencyRawValue
impl PartialEq for DependencyRawValue
impl Eq for DependencyRawValue
impl StructuralPartialEq for DependencyRawValue
Auto Trait Implementations§
impl Freeze for DependencyRawValue
impl RefUnwindSafe for DependencyRawValue
impl Send for DependencyRawValue
impl Sync for DependencyRawValue
impl Unpin for DependencyRawValue
impl UnwindSafe for DependencyRawValue
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.