pub struct CacheImportMapping {
pub version: u32,
pub old: ResourceId,
pub new: ResourceId,
pub content_hash: String,
}Expand description
One explicit, one-to-one local file mapping in JSONL format version 1.
Fields§
§version: u32§old: ResourceId§new: ResourceId§content_hash: StringCaller-supplied full-file BLAKE3, 64 lowercase hexadecimal characters.
Implementations§
Source§impl CacheImportMapping
impl CacheImportMapping
Sourcepub fn read_jsonl(reader: impl BufRead) -> Result<Vec<Self>>
pub fn read_jsonl(reader: impl BufRead) -> Result<Vec<Self>>
Parse nonblank JSONL lines. Diagnostics contain line numbers, never input data.
Trait Implementations§
Source§impl Clone for CacheImportMapping
impl Clone for CacheImportMapping
Source§impl Debug for CacheImportMapping
impl Debug for CacheImportMapping
Source§impl<'de> Deserialize<'de> for CacheImportMapping
impl<'de> Deserialize<'de> for CacheImportMapping
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
Auto Trait Implementations§
impl Freeze for CacheImportMapping
impl RefUnwindSafe for CacheImportMapping
impl Send for CacheImportMapping
impl Sync for CacheImportMapping
impl Unpin for CacheImportMapping
impl UnsafeUnpin for CacheImportMapping
impl UnwindSafe for CacheImportMapping
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