pub struct ThreadInput {
pub thread_id: String,
pub account: String,
pub from: String,
pub from_name: String,
pub subject: String,
pub date: String,
pub body: String,
}Expand description
One thread as the classifier is shown it.
Plain strings rather than a mecha-mail type on purpose: mecha-core
has no dependency on the mail crate and must never gain one. Mail
reaches the loop over MCP like any other tool, and the loop has never
learned where a tool came from. The caller fills this in from whatever
mail_recent returned.
Fields§
§thread_id: String§account: String§from: String§from_name: String§subject: String§date: String§body: StringAs much body as the caller chose to send. Snippet-first is the cheap default; the escalation rule is the caller’s to make, and is measurable once this store exists.
Trait Implementations§
Source§impl Clone for ThreadInput
impl Clone for ThreadInput
Source§fn clone(&self) -> ThreadInput
fn clone(&self) -> ThreadInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ThreadInput
impl Debug for ThreadInput
Source§impl Default for ThreadInput
impl Default for ThreadInput
Source§fn default() -> ThreadInput
fn default() -> ThreadInput
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ThreadInput
impl RefUnwindSafe for ThreadInput
impl Send for ThreadInput
impl Sync for ThreadInput
impl Unpin for ThreadInput
impl UnsafeUnpin for ThreadInput
impl UnwindSafe for ThreadInput
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