pub struct TomlLockfileSourceId {
source_str: String,
kind: SourceKind,
url: Url,
}
Expand description
Serialization of dependency’s source
Fields§
§source_str: String
The string representation of the source as it appears in the lockfile.
kind: SourceKind
The parsed source type, e.g. git
, registry
.
Used for sources ordering.
url: Url
The parsed URL of the source.
Used for sources ordering.
Implementations§
Trait Implementations§
Source§impl Clone for TomlLockfileSourceId
impl Clone for TomlLockfileSourceId
Source§fn clone(&self) -> TomlLockfileSourceId
fn clone(&self) -> TomlLockfileSourceId
Returns a duplicate 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 Debug for TomlLockfileSourceId
impl Debug for TomlLockfileSourceId
Source§impl<'de> Deserialize<'de> for TomlLockfileSourceId
impl<'de> Deserialize<'de> for TomlLockfileSourceId
Source§fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for TomlLockfileSourceId
impl Hash for TomlLockfileSourceId
Source§impl Ord for TomlLockfileSourceId
impl Ord for TomlLockfileSourceId
Source§fn cmp(&self, other: &TomlLockfileSourceId) -> Ordering
fn cmp(&self, other: &TomlLockfileSourceId) -> 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 TomlLockfileSourceId
impl PartialEq for TomlLockfileSourceId
Source§impl PartialOrd for TomlLockfileSourceId
impl PartialOrd for TomlLockfileSourceId
Source§impl Serialize for TomlLockfileSourceId
impl Serialize for TomlLockfileSourceId
impl Eq for TomlLockfileSourceId
Auto Trait Implementations§
impl Freeze for TomlLockfileSourceId
impl RefUnwindSafe for TomlLockfileSourceId
impl Send for TomlLockfileSourceId
impl Sync for TomlLockfileSourceId
impl Unpin for TomlLockfileSourceId
impl UnwindSafe for TomlLockfileSourceId
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,
§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: 144 bytes