pub struct GitStatusAnswer {
pub building: Address,
pub branch: Option<String>,
pub drift: Option<Drift>,
pub files: Vec<FileChange>,
pub checkpoint: Option<CommitAnswer>,
}Expand description
The working tree of one building, read at the moment of asking.
Fields§
§building: Address§branch: Option<String>The branch checked out, or absent on a detached head - which is a state a person can be in and one a name cannot describe.
drift: Option<Drift>Absent when the branch tracks no upstream.
files: Vec<FileChange>Files under this building that differ from the last commit, untracked ones included, in path order.
checkpoint: Option<CommitAnswer>The newest commit this city checkpointed at this building, from the
history rather than from git, for the reason Query::Commit
gives. Absent when the city has checkpointed nothing here.
Trait Implementations§
Source§impl Clone for GitStatusAnswer
impl Clone for GitStatusAnswer
Source§impl Debug for GitStatusAnswer
impl Debug for GitStatusAnswer
Source§impl<'de> Deserialize<'de> for GitStatusAnswer
impl<'de> Deserialize<'de> for GitStatusAnswer
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 GitStatusAnswer
Source§impl PartialEq for GitStatusAnswer
impl PartialEq for GitStatusAnswer
Source§impl Serialize for GitStatusAnswer
impl Serialize for GitStatusAnswer
impl StructuralPartialEq for GitStatusAnswer
Auto Trait Implementations§
impl Freeze for GitStatusAnswer
impl RefUnwindSafe for GitStatusAnswer
impl Send for GitStatusAnswer
impl Sync for GitStatusAnswer
impl Unpin for GitStatusAnswer
impl UnsafeUnpin for GitStatusAnswer
impl UnwindSafe for GitStatusAnswer
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