pub struct Package {Show 31 fields
pub name: String,
pub repo: String,
pub version: Option<String>,
pub sub_packages: Option<Vec<String>>,
pub main_subs: Option<Vec<String>>,
pub versions: Option<HashMap<String, String>>,
pub description: String,
pub website: Option<String>,
pub readme: Option<String>,
pub man: Option<String>,
pub git: String,
pub maintainer: Maintainer,
pub author: Option<Author>,
pub license: String,
pub types: Vec<String>,
pub dependencies: Option<Dependencies>,
pub package_type: PackageType,
pub alt: Option<String>,
pub scope: Scope,
pub bins: Option<Vec<String>>,
pub conflicts: Option<Vec<String>>,
pub replaces: Option<Vec<String>>,
pub provides: Option<Vec<String>>,
pub tags: Vec<String>,
pub extension: Option<ExtensionInfo>,
pub rollback: Option<bool>,
pub updates: Option<Vec<UpdateInfo>>,
pub hooks: Option<Hooks>,
pub backup: Option<Vec<String>>,
pub installed_size: Option<u64>,
pub archive_size: Option<u64>,
}Fields§
§name: String§repo: String§version: Option<String>§sub_packages: Option<Vec<String>>§main_subs: Option<Vec<String>>§versions: Option<HashMap<String, String>>§description: String§website: Option<String>§readme: Option<String>§man: Option<String>§git: String§maintainer: Maintainer§license: String§types: Vec<String>§dependencies: Option<Dependencies>§package_type: PackageType§alt: Option<String>§scope: Scope§bins: Option<Vec<String>>§conflicts: Option<Vec<String>>§replaces: Option<Vec<String>>§provides: Option<Vec<String>>§extension: Option<ExtensionInfo>§rollback: Option<bool>§updates: Option<Vec<UpdateInfo>>§hooks: Option<Hooks>§backup: Option<Vec<String>>§installed_size: Option<u64>§archive_size: Option<u64>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Package
impl<'de> Deserialize<'de> for Package
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 Package
impl RefUnwindSafe for Package
impl Send for Package
impl Sync for Package
impl Unpin for Package
impl UnwindSafe for Package
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more