pub struct TomlLockfileDependency {
pub name: String,
pub version: String,
pub source: Option<TomlLockfileSourceId>,
pub checksum: Option<String>,
pub dependencies: Option<Vec<TomlLockfilePackageId>>,
pub replace: Option<TomlLockfilePackageId>,
}
Expand description
Serialization of lockfiles dependencies
Fields§
§name: String
The name of the dependency.
version: String
The version of the dependency.
source: Option<TomlLockfileSourceId>
The source of the dependency.
Cargo does not serialize path dependencies.
checksum: Option<String>
The checksum of the dependency.
In older lockfiles, checksums were not stored here and instead on a separate [metadata]
table (see TomlLockfileMetadata
).
dependencies: Option<Vec<TomlLockfilePackageId>>
The transitive dependencies used by this dependency.
replace: Option<TomlLockfilePackageId>
The replace of the dependency.
Trait Implementations§
Source§impl Debug for TomlLockfileDependency
impl Debug for TomlLockfileDependency
Source§impl<'de> Deserialize<'de> for TomlLockfileDependency
impl<'de> Deserialize<'de> for TomlLockfileDependency
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
Source§impl Ord for TomlLockfileDependency
impl Ord for TomlLockfileDependency
Source§fn cmp(&self, other: &TomlLockfileDependency) -> Ordering
fn cmp(&self, other: &TomlLockfileDependency) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TomlLockfileDependency
impl PartialEq for TomlLockfileDependency
Source§impl PartialOrd for TomlLockfileDependency
impl PartialOrd for TomlLockfileDependency
Source§impl Serialize for TomlLockfileDependency
impl Serialize for TomlLockfileDependency
impl Eq for TomlLockfileDependency
impl StructuralPartialEq for TomlLockfileDependency
Auto Trait Implementations§
impl Freeze for TomlLockfileDependency
impl RefUnwindSafe for TomlLockfileDependency
impl Send for TomlLockfileDependency
impl Sync for TomlLockfileDependency
impl Unpin for TomlLockfileDependency
impl UnwindSafe for TomlLockfileDependency
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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: 432 bytes