pub struct Thread {Show 26 fields
pub id: String,
pub thread: String,
pub target_thread: Option<String>,
pub parent_thread: Option<String>,
pub mode: ThreadMode,
pub state: ThreadState,
pub base_state: String,
pub base_root: String,
pub current_state: Option<String>,
pub merged_state: Option<String>,
pub task: Option<String>,
pub execution_path: PathBuf,
pub materialized_path: Option<PathBuf>,
pub changed_paths: Vec<String>,
pub impact_categories: Vec<ThreadImpactCategory>,
pub heavy_impact_paths: Vec<String>,
pub promotion_suggested: bool,
pub freshness: ThreadFreshness,
pub verification_summary: ThreadVerificationSummary,
pub confidence_summary: ThreadConfidenceSummary,
pub integration_policy_result: ThreadIntegrationPolicy,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub ephemeral: Option<EphemeralMarker>,
pub auto: bool,
pub shared_target_dir: Option<PathBuf>,
}Fields§
§id: String§thread: String§target_thread: Option<String>§parent_thread: Option<String>§mode: ThreadMode§state: ThreadState§base_state: String§base_root: String§current_state: Option<String>§merged_state: Option<String>§task: Option<String>§execution_path: PathBuf§materialized_path: Option<PathBuf>§changed_paths: Vec<String>§impact_categories: Vec<ThreadImpactCategory>§heavy_impact_paths: Vec<String>§promotion_suggested: bool§freshness: ThreadFreshness§verification_summary: ThreadVerificationSummary§confidence_summary: ThreadConfidenceSummary§integration_policy_result: ThreadIntegrationPolicy§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§ephemeral: Option<EphemeralMarker>Optional ephemeral-thread marker (W1). Preserved across record/Thread round-trips so the auto-collapse sweep can find it.
auto: boolMirror of ThreadRecord::auto. See that field for semantics.
Defaults to false for back-compat with pre-2.2 records.
Mirror of ThreadRecord::shared_target_dir. See that field for
semantics. None for threads that use cargo’s default per-checkout
target/. Defaults to None for back-compat with records written
before the field existed.
Implementations§
Source§impl Thread
impl Thread
pub fn to_record(&self) -> ThreadRecord
pub fn from_record(record: ThreadRecord) -> Self
pub fn to_view( &self, runtime: ThreadRuntimeOverlay, is_current: bool, ) -> ThreadView
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Thread
impl<'de> Deserialize<'de> for Thread
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 Thread
impl RefUnwindSafe for Thread
impl Send for Thread
impl Sync for Thread
impl Unpin for Thread
impl UnsafeUnpin for Thread
impl UnwindSafe for Thread
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