pub struct MetadataPackage {
pub name: String,
pub version: String,
pub id: String,
pub manifest_path: PathBuf,
pub publish: Option<Vec<String>>,
pub description: Option<String>,
pub license: Option<String>,
pub repository: Option<String>,
pub readme: Option<String>,
pub targets: Vec<MetadataTarget>,
pub dependencies: Vec<MetadataDependency>,
}Expand description
Один пакет из cargo metadata.
Fields§
§name: StringИмя пакета.
version: StringВерсия (строка semver).
id: StringУникальный идентификатор пакета.
manifest_path: PathBufПуть к Cargo.toml.
publish: Option<Vec<String>>None — публикуется по умолчанию, Some([]) — publish = false.
description: Option<String>Описание из манифеста.
license: Option<String>Лицензия из манифеста.
repository: Option<String>Репозиторий из манифеста.
readme: Option<String>Readme из манифеста.
targets: Vec<MetadataTarget>Целевые артефакты пакета (bin/lib/…).
dependencies: Vec<MetadataDependency>Зависимости пакета.
Trait Implementations§
Source§impl Clone for MetadataPackage
impl Clone for MetadataPackage
Source§impl Debug for MetadataPackage
impl Debug for MetadataPackage
Source§impl<'de> Deserialize<'de> for MetadataPackage
impl<'de> Deserialize<'de> for MetadataPackage
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 MetadataPackage
impl RefUnwindSafe for MetadataPackage
impl Send for MetadataPackage
impl Sync for MetadataPackage
impl Unpin for MetadataPackage
impl UnsafeUnpin for MetadataPackage
impl UnwindSafe for MetadataPackage
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