pub struct SessionContextUpdate {
pub github_repo: Option<String>,
pub github_issue: Option<i32>,
pub github_pr: Option<i32>,
pub worktree_path: Option<String>,
pub worktree_branch: Option<String>,
}Expand description
Context update derived from a Bash tool event.
Each field is Some only if the parsing found a new value.
Use with COALESCE semantics to update session fields.
Fields§
§github_repo: Option<String>Repository in owner/repo format
github_issue: Option<i32>GitHub issue number
github_pr: Option<i32>GitHub PR number
worktree_path: Option<String>Absolute path to git worktree
worktree_branch: Option<String>Branch name in the worktree
Implementations§
Source§impl SessionContextUpdate
impl SessionContextUpdate
Sourcepub fn has_values(&self) -> bool
pub fn has_values(&self) -> bool
Returns true if this update has any values
Sourcepub fn merge(&mut self, other: SessionContextUpdate)
pub fn merge(&mut self, other: SessionContextUpdate)
Merge another update into this one (other values take precedence)
Trait Implementations§
Source§impl Clone for SessionContextUpdate
impl Clone for SessionContextUpdate
Source§fn clone(&self) -> SessionContextUpdate
fn clone(&self) -> SessionContextUpdate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionContextUpdate
impl Debug for SessionContextUpdate
Source§impl Default for SessionContextUpdate
impl Default for SessionContextUpdate
Source§fn default() -> SessionContextUpdate
fn default() -> SessionContextUpdate
Returns the “default value” for a type. Read more
Source§impl PartialEq for SessionContextUpdate
impl PartialEq for SessionContextUpdate
impl Eq for SessionContextUpdate
impl StructuralPartialEq for SessionContextUpdate
Auto Trait Implementations§
impl Freeze for SessionContextUpdate
impl RefUnwindSafe for SessionContextUpdate
impl Send for SessionContextUpdate
impl Sync for SessionContextUpdate
impl Unpin for SessionContextUpdate
impl UnwindSafe for SessionContextUpdate
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