pub struct GitState {
pub snap: RepoSnapshot,
pub blob: Option<Blob>,
pub selected_branch: Option<String>,
pub selected_path: Option<String>,
pub pane: Pane,
pub scale: f32,
}Expand description
The complete observable state (FC-1 / FC-3) of a GitView, in one
serializable, round-trippable struct: the repo snapshot, the open source blob,
the selected branch / path (keyed on stable names, FC-5), the visible pane,
and the source zoom. GitView::state hands back a &GitState; a headless
driver (facett_core::harness) snapshots it after feeding a Vec<Msg>.
Fields§
§snap: RepoSnapshotThe repository snapshot the facet renders (branches / commits / tree).
blob: Option<Blob>The open source blob (set by the host, or by gix when a file is clicked).
selected_branch: Option<String>The selected branch name (FC-5: keyed on the name, not the row index).
selected_path: Option<String>The open tree path (FC-5: keyed on the entry name).
pane: PaneWhich middle pane is showing (tree / log).
scale: f32Source zoom factor (0.5..=4.0).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GitState
impl<'de> Deserialize<'de> for GitState
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 StructuralPartialEq for GitState
Auto Trait Implementations§
impl Freeze for GitState
impl RefUnwindSafe for GitState
impl Send for GitState
impl Sync for GitState
impl Unpin for GitState
impl UnsafeUnpin for GitState
impl UnwindSafe for GitState
Blanket Implementations§
impl<T> Allocation 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