pub struct MetadataDependency {
pub name: String,
pub req: String,
pub kind: Option<String>,
pub path: Option<PathBuf>,
}Expand description
Одна зависимость из cargo metadata.
Fields§
§name: StringИмя пакета зависимости.
req: StringТребование версии (semver-range).
kind: Option<String>None — обычная зависимость, "dev", "build".
path: Option<PathBuf>Прямой путь для локальной зависимости.
Trait Implementations§
Source§impl Clone for MetadataDependency
impl Clone for MetadataDependency
Source§impl Debug for MetadataDependency
impl Debug for MetadataDependency
Source§impl<'de> Deserialize<'de> for MetadataDependency
impl<'de> Deserialize<'de> for MetadataDependency
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 MetadataDependency
impl RefUnwindSafe for MetadataDependency
impl Send for MetadataDependency
impl Sync for MetadataDependency
impl Unpin for MetadataDependency
impl UnsafeUnpin for MetadataDependency
impl UnwindSafe for MetadataDependency
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