pub enum SelectedContents<'a> {
Absent,
Unchanged,
Binary {
old_description: Option<Cow<'a, str>>,
new_description: Option<Cow<'a, str>>,
},
Present {
contents: String,
},
}Expand description
The contents of a file selected as part of the record operation.
Variants§
Absent
The file didn’t exist or was deleted.
Unchanged
The file contents have not changed.
Binary
The file contains binary contents.
Fields
Present
The file contained the following text contents.
Trait Implementations§
Source§impl<'a> Clone for SelectedContents<'a>
impl<'a> Clone for SelectedContents<'a>
Source§fn clone(&self) -> SelectedContents<'a>
fn clone(&self) -> SelectedContents<'a>
Returns a copy 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<'a> Debug for SelectedContents<'a>
impl<'a> Debug for SelectedContents<'a>
Source§impl<'a> Hash for SelectedContents<'a>
impl<'a> Hash for SelectedContents<'a>
Source§impl<'a> Ord for SelectedContents<'a>
impl<'a> Ord for SelectedContents<'a>
Source§fn cmp(&self, other: &SelectedContents<'a>) -> Ordering
fn cmp(&self, other: &SelectedContents<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialEq for SelectedContents<'a>
impl<'a> PartialEq for SelectedContents<'a>
Source§impl<'a> PartialOrd for SelectedContents<'a>
impl<'a> PartialOrd for SelectedContents<'a>
impl<'a> Eq for SelectedContents<'a>
impl<'a> StructuralPartialEq for SelectedContents<'a>
Auto Trait Implementations§
impl<'a> Freeze for SelectedContents<'a>
impl<'a> RefUnwindSafe for SelectedContents<'a>
impl<'a> Send for SelectedContents<'a>
impl<'a> Sync for SelectedContents<'a>
impl<'a> Unpin for SelectedContents<'a>
impl<'a> UnwindSafe for SelectedContents<'a>
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more