pub struct MessageHit {
pub session_id: String,
pub provider: Provider,
pub seq: i64,
pub role: Role,
pub kind: MessageKind,
pub ts: Option<DateTime<Utc>>,
pub tool_name: Option<String>,
pub tool_call_id: Option<String>,
pub fuzzy_score: Option<u32>,
pub content: String,
}Fields§
§session_id: String§provider: Provider§seq: i64§role: Role§kind: MessageKind§ts: Option<DateTime<Utc>>§tool_name: Option<String>The tool that produced a Role::Tool message (e.g. Bash, exec_command), else None.
tool_call_id: Option<String>§fuzzy_score: Option<u32>§content: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for MessageHit
impl RefUnwindSafe for MessageHit
impl Send for MessageHit
impl Sync for MessageHit
impl Unpin for MessageHit
impl UnsafeUnpin for MessageHit
impl UnwindSafe for MessageHit
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