pub struct ThreadView {
pub id: String,
pub cwd: Option<PathBuf>,
pub model: Option<String>,
pub state: Option<SessionState>,
pub subagent: bool,
}Expand description
The fields of a Thread the observer reads.
Fields§
§id: StringThe thread id — the same session_id Codex’s hooks report.
cwd: Option<PathBuf>The thread’s working directory.
model: Option<String>The model id, when the server reports one.
state: Option<SessionState>The mapped state, or None for a status that says nothing
(notLoaded, or one this build does not know).
subagent: boolNot a session of its own: a subagent (a parent id, or a subAgent*
source), or a system-spawned side thread such as the one Codex uses to
title a chat (ephemeral, threadSource: "system"). Not reported —
the user’s thread already covers it.
Trait Implementations§
Source§impl Clone for ThreadView
impl Clone for ThreadView
Source§impl Debug for ThreadView
impl Debug for ThreadView
impl Eq for ThreadView
Source§impl PartialEq for ThreadView
impl PartialEq for ThreadView
impl StructuralPartialEq for ThreadView
Auto Trait Implementations§
impl Freeze for ThreadView
impl RefUnwindSafe for ThreadView
impl Send for ThreadView
impl Sync for ThreadView
impl Unpin for ThreadView
impl UnsafeUnpin for ThreadView
impl UnwindSafe for ThreadView
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more