struct CrateListingV2 {
    installs: BTreeMap<PackageId, InstallInfo>,
    other: BTreeMap<String, Value>,
}
Expand description

Tracking information for the set of installed packages.

Fields§

§installs: BTreeMap<PackageId, InstallInfo>

Map of every installed package.

§other: BTreeMap<String, Value>

Forwards compatibility. Unknown keys from future versions of Cargo will be stored here and retained when the file is saved.

Implementations§

Incorporate any changes from v1 into self. This handles the initial upgrade to v2, and handles the case where v2 is in use, and a v1 update is made, then v2 is used again. i.e., cargo +new install foo ; cargo +old install bar ; cargo +new install bar For now, v1 is the source of truth, so its values are trusted over v2.

Trait Implementations§

Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 48 bytes