pub struct Task {
pub artifacts_legacy: Option<Vec<Artifact>>,
pub session_id: Option<String>,
pub history_legacy: Option<Vec<Message>>,
pub artifacts: Vec<Artifact>,
pub context_id: String,
pub history: Vec<Message>,
pub id: String,
pub kind: String,
pub metadata: Option<Map<String, Value>>,
pub status: TaskStatus,
}
Fields§
§artifacts_legacy: Option<Vec<Artifact>>
§session_id: Option<String>
§history_legacy: Option<Vec<Message>>
§artifacts: Vec<Artifact>
§context_id: String
§history: Vec<Message>
§id: String
§kind: String
§metadata: Option<Map<String, Value>>
§status: TaskStatus
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Task
impl<'de> Deserialize<'de> for Task
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnwindSafe for Task
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