pub enum Data {
Buffer {
is_derived: bool,
},
Binary {
size: u64,
},
}
Available on crate feature
blob
only.Expand description
Data as part of an Outcome.
Variants§
Buffer
The data to use for diffing was written into the buffer that was passed during the call to Pipeline::convert_to_diffable()
.
Fields
§
is_derived: bool
If true
, a binary to text filter was used to obtain the buffer,
making it a derived value.
Applications should check for this to avoid treating the buffer content as (original) resource content.
Binary
The size that the binary blob had at the given revision, without having applied filters, as it’s either considered binary or above the big-file threshold.
In this state, the binary file cannot be diffed.
Trait Implementations§
Source§impl Ord for Data
impl Ord for Data
Source§impl PartialOrd for Data
impl PartialOrd for Data
impl Copy for Data
impl Eq for Data
impl StructuralPartialEq for Data
Auto Trait Implementations§
impl Freeze for Data
impl RefUnwindSafe for Data
impl Send for Data
impl Sync for Data
impl Unpin for Data
impl UnwindSafe for Data
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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.