pub struct LockEntry {
pub spec: String,
pub spec_key: String,
pub skills: Vec<LockSkill>,
pub installed_at: String,
}Expand description
One lock entry per installed spec. Field order matches the TS object literal
so serde_json::to_string_pretty reproduces JSON.stringify byte-for-byte.
Fields§
§spec: StringOriginal user-facing spec, e.g. npm:next@14.2.3.
spec_key: StringFilesystem-safe encoding (see encode_spec_key).
skills: Vec<LockSkill>Skills installed for this entry.
installed_at: StringISO timestamp of the last install.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LockEntry
impl<'de> Deserialize<'de> for LockEntry
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 LockEntry
impl StructuralPartialEq for LockEntry
Auto Trait Implementations§
impl Forget for LockEntry
impl Freeze for LockEntry
impl Move for LockEntry
impl RefUnwindSafe for LockEntry
impl Send for LockEntry
impl Sync for LockEntry
impl Unpin for LockEntry
impl UnsafeUnpin for LockEntry
impl UnwindSafe for LockEntry
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