pub struct ContentDelta {
pub added_chars: usize,
pub removed_chars: usize,
pub modified_chars: usize,
pub previous_size: usize,
pub current_size: usize,
pub change_percentage: f64,
}Expand description
Content delta information
Fields§
§added_chars: usizeAdded content (approximate)
removed_chars: usizeRemoved content (approximate)
modified_chars: usizeModified content (approximate)
previous_size: usizeTotal content size before change
current_size: usizeTotal content size after change
change_percentage: f64Change percentage (0.0 to 1.0)
Trait Implementations§
Source§impl Clone for ContentDelta
impl Clone for ContentDelta
Source§fn clone(&self) -> ContentDelta
fn clone(&self) -> ContentDelta
Returns a duplicate of the value. Read more
1.0.0 · 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 ContentDelta
impl Debug for ContentDelta
Source§impl<'de> Deserialize<'de> for ContentDelta
impl<'de> Deserialize<'de> for ContentDelta
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 ContentDelta
impl RefUnwindSafe for ContentDelta
impl Send for ContentDelta
impl Sync for ContentDelta
impl Unpin for ContentDelta
impl UnwindSafe for ContentDelta
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