pub struct Metadata<'a> {
pub version: &'a str,
pub cache_key: &'a str,
}Expand description
The start of the metadata block Typically at the start of the file
§Examples
__metadata:
version: 8
cacheKey: 9will often be represented as:
Metadata {
version: "8",
cache_key: "9",
}Fields§
§version: &'a strThe version of the lockfile
cache_key: &'a strThe cache key of the lockfile
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Metadata<'a>
impl<'a> RefUnwindSafe for Metadata<'a>
impl<'a> Send for Metadata<'a>
impl<'a> Sync for Metadata<'a>
impl<'a> Unpin for Metadata<'a>
impl<'a> UnsafeUnpin for Metadata<'a>
impl<'a> UnwindSafe for Metadata<'a>
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