pub struct FileRootSpec {
pub path: String,
pub expected_hash: String,
}Expand description
One declared file dependency of a cache entry. The path is a
workspace-relative path (e.g., src/foo.rs) so the same entry
can serve two clients with different absolute checkout layouts.
Every consumer joins path against its own workspace base before
re-hashing on revalidation; this is the mechanism that catches
cross-machine drift where Bob’s tree differs from Alice’s. Legacy
absolute paths still revalidate correctly because PathBuf::join
with an absolute argument replaces the base, so single-machine
deployments continue to work without migration.
Fields§
§path: String§expected_hash: StringTrait Implementations§
Source§impl Clone for FileRootSpec
impl Clone for FileRootSpec
Source§fn clone(&self) -> FileRootSpec
fn clone(&self) -> FileRootSpec
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 FileRootSpec
impl Debug for FileRootSpec
Source§impl<'de> Deserialize<'de> for FileRootSpec
impl<'de> Deserialize<'de> for FileRootSpec
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
Source§impl PartialEq for FileRootSpec
impl PartialEq for FileRootSpec
Source§fn eq(&self, other: &FileRootSpec) -> bool
fn eq(&self, other: &FileRootSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FileRootSpec
impl Serialize for FileRootSpec
impl Eq for FileRootSpec
impl StructuralPartialEq for FileRootSpec
Auto Trait Implementations§
impl Freeze for FileRootSpec
impl RefUnwindSafe for FileRootSpec
impl Send for FileRootSpec
impl Sync for FileRootSpec
impl Unpin for FileRootSpec
impl UnsafeUnpin for FileRootSpec
impl UnwindSafe for FileRootSpec
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