pub struct FileHash {
pub mode: u32,
pub oid: Oid,
}Expand description
One file’s recorded state on one side (index or working tree): the git
file mode (0o100644, 0o100755, 0o120000) and the blob id of the
raw bytes (no clean filter: CRLF and LFS pointers stay as they are).
Fields§
§mode: u32§oid: OidTrait Implementations§
impl Copy for FileHash
Source§impl<'de> Deserialize<'de> for FileHash
impl<'de> Deserialize<'de> for FileHash
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 FileHash
impl StructuralPartialEq for FileHash
Auto Trait Implementations§
impl Forget for FileHash
impl Freeze for FileHash
impl Move for FileHash
impl RefUnwindSafe for FileHash
impl Send for FileHash
impl Sync for FileHash
impl Unpin for FileHash
impl UnsafeUnpin for FileHash
impl UnwindSafe for FileHash
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