pub struct ToolchainLockfile {
pub schema: u32,
pub generated_at: String,
pub tools: Vec<LockedTool>,
}Expand description
The parsed toolchain lockfile: a schema tag, a generation timestamp, and the
set of pinned tools (serialized as a TOML [[tool]] array of tables).
Fields§
§schema: u32On-disk schema version (see TOOLCHAIN_LOCK_SCHEMA).
generated_at: StringRFC 3339 timestamp of when the lock was last written.
tools: Vec<LockedTool>The pinned tools. Serialized/deserialized as [[tool]] tables.
Trait Implementations§
Source§impl Clone for ToolchainLockfile
impl Clone for ToolchainLockfile
Source§fn clone(&self) -> ToolchainLockfile
fn clone(&self) -> ToolchainLockfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ToolchainLockfile
impl Debug for ToolchainLockfile
Source§impl<'de> Deserialize<'de> for ToolchainLockfile
impl<'de> Deserialize<'de> for ToolchainLockfile
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
impl Eq for ToolchainLockfile
Source§impl PartialEq for ToolchainLockfile
impl PartialEq for ToolchainLockfile
Source§fn eq(&self, other: &ToolchainLockfile) -> bool
fn eq(&self, other: &ToolchainLockfile) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolchainLockfile
impl Serialize for ToolchainLockfile
impl StructuralPartialEq for ToolchainLockfile
Auto Trait Implementations§
impl Freeze for ToolchainLockfile
impl RefUnwindSafe for ToolchainLockfile
impl Send for ToolchainLockfile
impl Sync for ToolchainLockfile
impl Unpin for ToolchainLockfile
impl UnsafeUnpin for ToolchainLockfile
impl UnwindSafe for ToolchainLockfile
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.