Struct reg_index::IndexPackage
source · #[non_exhaustive]pub struct IndexPackage {
pub name: String,
pub vers: Version,
pub deps: Vec<IndexDependency>,
pub features: BTreeMap<String, Vec<String>>,
pub features2: Option<BTreeMap<String, Vec<String>>>,
pub cksum: String,
pub yanked: bool,
pub links: Option<String>,
pub v: Option<u8>,
}
Expand description
An entry for a single version of a package in the index.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
The name of the package.
vers: Version
The version of the package.
deps: Vec<IndexDependency>
List of direct dependencies of the package.
features: BTreeMap<String, Vec<String>>
Cargo features defined in the package.
features2: Option<BTreeMap<String, Vec<String>>>
Cargo features2 defined in the package.
cksum: String
Checksum of the .crate
file.
yanked: bool
Whether or not this package is yanked.
links: Option<String>
Optional string that is the name of a native library the package is linking to.
v: Option<u8>
Versioning of Index Package
Trait Implementations§
source§impl Clone for IndexPackage
impl Clone for IndexPackage
source§fn clone(&self) -> IndexPackage
fn clone(&self) -> IndexPackage
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<'de> Deserialize<'de> for IndexPackage
impl<'de> Deserialize<'de> for IndexPackage
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 RefUnwindSafe for IndexPackage
impl Send for IndexPackage
impl Sync for IndexPackage
impl Unpin for IndexPackage
impl UnwindSafe for IndexPackage
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