pub enum DiffStrategy {
Text,
Binary,
Structural,
Semantic,
Opaque,
}Expand description
How a content type should be diffed
Variants§
Text
Line-based textual diff (source code, markdown, config)
Binary
Binary diff (delta compression)
Structural
Structural diff (JSON/XML/AST tree comparison)
Semantic
Semantic diff (schema-aware: databases, CAD feature trees)
Opaque
No diff — treat as opaque blob, show only size/hash changes
Trait Implementations§
Source§impl Clone for DiffStrategy
impl Clone for DiffStrategy
Source§fn clone(&self) -> DiffStrategy
fn clone(&self) -> DiffStrategy
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 DiffStrategy
impl Debug for DiffStrategy
Source§impl<'de> Deserialize<'de> for DiffStrategy
impl<'de> Deserialize<'de> for DiffStrategy
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 DiffStrategy
Source§impl PartialEq for DiffStrategy
impl PartialEq for DiffStrategy
Source§impl Serialize for DiffStrategy
impl Serialize for DiffStrategy
impl StructuralPartialEq for DiffStrategy
Auto Trait Implementations§
impl Freeze for DiffStrategy
impl RefUnwindSafe for DiffStrategy
impl Send for DiffStrategy
impl Sync for DiffStrategy
impl Unpin for DiffStrategy
impl UnsafeUnpin for DiffStrategy
impl UnwindSafe for DiffStrategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.