pub struct CacheKey<'a> {
pub file_content: &'a str,
pub schema_hash: &'a str,
pub validate_formats: bool,
}Expand description
The cache lookup/store key: file content, schema hash, and format-validation flag.
Fields§
§file_content: &'a strThe raw file content being validated.
schema_hash: &'a strPre-computed SHA-256 hash of the schema (see schema_hash).
validate_formats: boolWhether format validation was enabled.
Auto Trait Implementations§
impl<'a> Freeze for CacheKey<'a>
impl<'a> RefUnwindSafe for CacheKey<'a>
impl<'a> Send for CacheKey<'a>
impl<'a> Sync for CacheKey<'a>
impl<'a> Unpin for CacheKey<'a>
impl<'a> UnsafeUnpin for CacheKey<'a>
impl<'a> UnwindSafe for CacheKey<'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