pub struct ControlMessage {Show 14 fields
pub id: i64,
pub session_id: String,
pub role: String,
pub channel: String,
pub channel_thread: Option<String>,
pub content: String,
pub summary: Option<String>,
pub model: Option<String>,
pub agent: Option<String>,
pub input_tokens: Option<i64>,
pub output_tokens: Option<i64>,
pub tokens_used: Option<i64>,
pub cost_usd: Option<f64>,
pub created_at: String,
}Expand description
A message in the control session conversation history.
Fields§
§id: i64§session_id: String§role: String§channel: String§channel_thread: Option<String>§content: String§summary: Option<String>§model: Option<String>§agent: Option<String>§input_tokens: Option<i64>§output_tokens: Option<i64>§tokens_used: Option<i64>§cost_usd: Option<f64>§created_at: StringTrait Implementations§
Source§impl Clone for ControlMessage
impl Clone for ControlMessage
Auto Trait Implementations§
impl Freeze for ControlMessage
impl RefUnwindSafe for ControlMessage
impl Send for ControlMessage
impl Sync for ControlMessage
impl Unpin for ControlMessage
impl UnsafeUnpin for ControlMessage
impl UnwindSafe for ControlMessage
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<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