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§fn clone(&self) -> FileIdentity
fn clone(&self) -> FileIdentity
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 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
Source§fn cmp(&self, other: &FileIdentity) -> Ordering
fn cmp(&self, other: &FileIdentity) -> Ordering
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
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