pub struct DiffContent {
pub worktree: LayerState<Vec<FileContent>>,
pub branch_ahead: LayerState<Vec<FileContent>>,
pub base: Option<BaseState>,
pub base_error: Option<String>,
pub truncated: bool,
}Expand description
The changed files of a seat’s two diff layers, bounded and flagged.
A layer answers in LayerState’s three states, exactly as the
snapshot’s layer does: Populated carries the files, Clean says
the layer had nothing to show, ScanFailed says the read could not
be taken.
Fields§
§worktree: LayerState<Vec<FileContent>>§branch_ahead: LayerState<Vec<FileContent>>§base: Option<BaseState>How current the base the branch layer was read against is. None when
there is no branch layer to describe.
base_error: Option<String>Why the base fetch did not run, in git’s own words, beside base for
the same reason: a page says what failed rather than only that the base
could not be checked. None when the fetch ran or no branch layer is
drawn.
truncated: boolContent this read withheld: a file cut by a cap, a file past the file cap, or a fetch that failed. The per-file flags say which.
Trait Implementations§
Source§impl Clone for DiffContent
impl Clone for DiffContent
Source§fn clone(&self) -> DiffContent
fn clone(&self) -> DiffContent
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 DiffContent
impl Debug for DiffContent
Source§impl<'de> Deserialize<'de> for DiffContent
impl<'de> Deserialize<'de> for DiffContent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DiffContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DiffContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DiffContent
Source§impl PartialEq for DiffContent
impl PartialEq for DiffContent
Source§impl Serialize for DiffContent
impl Serialize for DiffContent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DiffContent
Auto Trait Implementations§
impl Freeze for DiffContent
impl RefUnwindSafe for DiffContent
impl Send for DiffContent
impl Sync for DiffContent
impl Unpin for DiffContent
impl UnsafeUnpin for DiffContent
impl UnwindSafe for DiffContent
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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