#[non_exhaustive]pub struct SessionBranchChangedParams {
pub session_id: String,
pub view_cursor: String,
pub source_range: SourceRange,
pub workspace_root: String,
pub branch: Option<String>,
pub vcs: Option<Vcs>,
}Expand description
session/branchChanged params: a durable workspace-branch observation
landed.
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.session_id: StringThe owning session.
view_cursor: StringOpaque, strictly monotonic view cursor.
source_range: SourceRangeThe durable records this event folded from.
workspace_root: StringThe observed workspace root.
branch: Option<String>The observed branch; null on a detached-HEAD observation — a fact, not
“unchanged”.
vcs: Option<Vcs>The detected version-control system; absent when no repository was detected.
Trait Implementations§
Source§impl Clone for SessionBranchChangedParams
impl Clone for SessionBranchChangedParams
Source§impl Debug for SessionBranchChangedParams
impl Debug for SessionBranchChangedParams
Source§impl<'de> Deserialize<'de> for SessionBranchChangedParams
impl<'de> Deserialize<'de> for SessionBranchChangedParams
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 SessionBranchChangedParams
impl StructuralPartialEq for SessionBranchChangedParams
Auto Trait Implementations§
impl Freeze for SessionBranchChangedParams
impl RefUnwindSafe for SessionBranchChangedParams
impl Send for SessionBranchChangedParams
impl Sync for SessionBranchChangedParams
impl Unpin for SessionBranchChangedParams
impl UnsafeUnpin for SessionBranchChangedParams
impl UnwindSafe for SessionBranchChangedParams
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