pub struct DeltaEntry {
pub path: String,
pub delta_type: DeltaType,
pub hash: Option<String>,
pub size: Option<u64>,
}Expand description
A single file change in the delta
Fields§
§path: StringRelative path from target root
delta_type: DeltaTypeType of change
hash: Option<String>SHA256 hash of the new content (None for deleted)
size: Option<u64>Size in bytes (None for deleted)
Implementations§
Trait Implementations§
Source§impl Clone for DeltaEntry
impl Clone for DeltaEntry
Source§fn clone(&self) -> DeltaEntry
fn clone(&self) -> DeltaEntry
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 DeltaEntry
impl Debug for DeltaEntry
Source§impl<'de> Deserialize<'de> for DeltaEntry
impl<'de> Deserialize<'de> for DeltaEntry
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
Auto Trait Implementations§
impl Freeze for DeltaEntry
impl RefUnwindSafe for DeltaEntry
impl Send for DeltaEntry
impl Sync for DeltaEntry
impl Unpin for DeltaEntry
impl UnsafeUnpin for DeltaEntry
impl UnwindSafe for DeltaEntry
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