pub struct Dependency {
pub version: Option<String>,
pub path: Option<Directory>,
pub optional: bool,
pub default_features: Option<bool>,
pub features: Vec<String>,
pub git: Option<String>,
pub branch: Option<String>,
pub tag: Option<String>,
pub rev: Option<String>,
pub workspace: bool,
pub rest: BTreeMap<String, Value>,
}
Fields§
§version: Option<String>
§path: Option<Directory>
§optional: bool
§default_features: Option<bool>
§features: Vec<String>
§git: Option<String>
§branch: Option<String>
§tag: Option<String>
§rev: Option<String>
§workspace: bool
§rest: BTreeMap<String, Value>
Implementations§
Source§impl Dependency
impl Dependency
pub fn serialize<__S>(
__self: &Dependency,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> Dependency
impl<'de> Dependency
pub fn deserialize<__D>(__deserializer: __D) -> Result<Dependency, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Clone for Dependency
impl Clone for Dependency
Source§fn clone(&self) -> Dependency
fn clone(&self) -> Dependency
Returns a duplicate 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 Dependency
impl Debug for Dependency
Source§impl<'de> Deserialize<'de> for Dependency
impl<'de> Deserialize<'de> for Dependency
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
Auto Trait Implementations§
impl Freeze for Dependency
impl RefUnwindSafe for Dependency
impl Send for Dependency
impl Sync for Dependency
impl Unpin for Dependency
impl UnwindSafe for Dependency
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