pub struct BranchContext {
pub work_type: WorkType,
pub scope: Option<String>,
pub ticket_id: Option<String>,
pub description: String,
pub is_feature_branch: bool,
pub base_branch: Option<String>,
}Expand description
Branch analysis and work pattern detection.
Fields§
§work_type: WorkTypeType of work being performed on this branch.
scope: Option<String>Extracted scope from branch name.
ticket_id: Option<String>Associated ticket or issue ID.
description: StringHuman-readable description of the branch purpose.
is_feature_branch: boolWhether this is a feature branch (vs main/master).
base_branch: Option<String>Base branch this was created from.
Trait Implementations§
Source§impl Clone for BranchContext
impl Clone for BranchContext
Source§fn clone(&self) -> BranchContext
fn clone(&self) -> BranchContext
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 BranchContext
impl Debug for BranchContext
Source§impl Default for BranchContext
impl Default for BranchContext
Source§fn default() -> BranchContext
fn default() -> BranchContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BranchContext
impl<'de> Deserialize<'de> for BranchContext
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
Auto Trait Implementations§
impl Freeze for BranchContext
impl RefUnwindSafe for BranchContext
impl Send for BranchContext
impl Sync for BranchContext
impl Unpin for BranchContext
impl UnsafeUnpin for BranchContext
impl UnwindSafe for BranchContext
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