pub struct LayerState {
pub branch: String,
pub parent: String,
pub local: Option<String>,
pub remote: Option<String>,
pub unpushed: u32,
pub behind: u32,
pub contains_parent: Option<bool>,
pub content: Vec<FileProblem>,
pub needs_trunk: bool,
pub merged: bool,
}Expand description
One layer as git sees it.
Fields§
§branch: String§parent: String§local: Option<String>The local branch’s commit; absent when there is no local branch.
remote: Option<String>The remote-tracking branch’s commit, as of the last fetch.
unpushed: u32Local commits the remote does not have.
behind: u32Remote commits the local branch does not have.
contains_parent: Option<bool>Whether the parent’s tip is in this layer’s history; absent when either branch is missing, or the layer has merged.
content: Vec<FileProblem>The parent’s file changes this layer’s tree does not have.
needs_trunk: boolThe parent merged into the trunk, and the trunk is not merged in.
merged: boolImplementations§
Trait Implementations§
Source§impl Clone for LayerState
impl Clone for LayerState
Source§impl Debug for LayerState
impl Debug for LayerState
impl Eq for LayerState
Source§impl PartialEq for LayerState
impl PartialEq for LayerState
Source§impl Serialize for LayerState
impl Serialize for LayerState
impl StructuralPartialEq for LayerState
Auto Trait Implementations§
impl Forget for LayerState
impl Freeze for LayerState
impl RefUnwindSafe for LayerState
impl Send for LayerState
impl Sync for LayerState
impl Unpin for LayerState
impl UnsafeUnpin for LayerState
impl UnwindSafe for LayerState
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