pub struct FileIdentity {
pub file_path: String,
pub file_hash: String,
}Expand description
Stable identity of a source file.
Fields§
§file_path: StringSource path supplied by the caller.
file_hash: StringSource content hash or other caller-defined stable identifier.
Trait Implementations§
Source§impl Clone for FileIdentity
impl Clone for FileIdentity
Source§impl Debug for FileIdentity
impl Debug for FileIdentity
Source§impl<'de> Deserialize<'de> for FileIdentity
impl<'de> Deserialize<'de> for FileIdentity
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 FileIdentity
Source§impl Hash for FileIdentity
impl Hash for FileIdentity
Source§impl Ord for FileIdentity
impl Ord for FileIdentity
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for FileIdentity
impl PartialEq for FileIdentity
Source§impl PartialOrd for FileIdentity
impl PartialOrd for FileIdentity
Source§impl Serialize for FileIdentity
impl Serialize for FileIdentity
impl StructuralPartialEq for FileIdentity
Auto Trait Implementations§
impl Freeze for FileIdentity
impl RefUnwindSafe for FileIdentity
impl Send for FileIdentity
impl Sync for FileIdentity
impl Unpin for FileIdentity
impl UnsafeUnpin for FileIdentity
impl UnwindSafe for FileIdentity
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