pub struct TomlLockfile {
pub version: Option<u32>,
pub package: Option<Vec<TomlLockfileDependency>>,
pub root: Option<TomlLockfileDependency>,
pub metadata: Option<TomlLockfileMetadata>,
pub patch: TomlLockfilePatch,
}
Expand description
Serialization of Cargo.lock
Fields§
§version: Option<u32>
The lockfile format version (version =
field).
This field is optional for backward compatibility. Older lockfiles, i.e. V1 and V2, does not have the version field serialized.
package: Option<Vec<TomlLockfileDependency>>
The list of [[package]]
entries describing each resolved dependency.
root: Option<TomlLockfileDependency>
The [root]
table describing the root package.
This field is optional for backward compatibility. Older lockfiles have the root package
separated, whereas newer lockfiles have the root package as part of [[package]]
.
metadata: Option<TomlLockfileMetadata>
The [metadata]
table
In older lockfile versions, dependency checksums were stored here instead of alongside each package entry.
patch: TomlLockfilePatch
The [patch]
table describing unused patches.
The lockfile stores them as a list of [[patch.unused]]
entries.
Trait Implementations§
Source§impl Debug for TomlLockfile
impl Debug for TomlLockfile
Source§impl<'de> Deserialize<'de> for TomlLockfile
impl<'de> Deserialize<'de> for TomlLockfile
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>,
Auto Trait Implementations§
impl Freeze for TomlLockfile
impl RefUnwindSafe for TomlLockfile
impl Send for TomlLockfile
impl Sync for TomlLockfile
impl Unpin for TomlLockfile
impl UnwindSafe for TomlLockfile
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
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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: 520 bytes