pub struct Submission {
pub task: String,
pub content_parts: Vec<ContentPart>,
pub response_tx: Sender<Result<String>>,
}Expand description
A user task submission sent to the session background loop.
Fields§
§task: StringThe user’s task text.
content_parts: Vec<ContentPart>Optional multimodal content parts (images + text). When non-empty, the session loop creates a multimodal user message.
response_tx: Sender<Result<String>>Channel to send the assistant’s response back to the caller.
Auto Trait Implementations§
impl !RefUnwindSafe for Submission
impl !UnwindSafe for Submission
impl Freeze for Submission
impl Send for Submission
impl Sync for Submission
impl Unpin for Submission
impl UnsafeUnpin for Submission
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