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§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<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 DiffContent
Source§impl PartialEq for DiffContent
impl PartialEq for DiffContent
Source§impl Serialize for DiffContent
impl Serialize for DiffContent
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§
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>,
§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.