#[non_exhaustive]pub struct BranchState {
pub workspace_root: String,
pub branch: Option<String>,
pub vcs: Option<Vcs>,
}Expand description
The latest branch observation in the snapshot.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.workspace_root: StringThe observed workspace root.
branch: Option<String>The observed branch; null on a detached-HEAD observation.
vcs: Option<Vcs>The detected version-control system; absent when none was detected.
Trait Implementations§
Source§impl Clone for BranchState
impl Clone for BranchState
Source§impl Debug for BranchState
impl Debug for BranchState
Source§impl<'de> Deserialize<'de> for BranchState
impl<'de> Deserialize<'de> for BranchState
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 BranchState
Source§impl PartialEq for BranchState
impl PartialEq for BranchState
Source§impl Serialize for BranchState
impl Serialize for BranchState
impl StructuralPartialEq for BranchState
Auto Trait Implementations§
impl Freeze for BranchState
impl RefUnwindSafe for BranchState
impl Send for BranchState
impl Sync for BranchState
impl Unpin for BranchState
impl UnsafeUnpin for BranchState
impl UnwindSafe for BranchState
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