pub struct TaskStoreEntry {
pub id: String,
pub context_id: String,
pub status: TaskStatus,
pub artifacts: Vec<Artifact>,
pub history: Vec<Message>,
pub metadata: HashMap<String, Value>,
pub push_configs: Vec<TaskPushNotificationConfig>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub version: u64,
}Expand description
An entry in the task store representing a persisted A2A task.
Fields§
§id: StringUnique task identifier.
context_id: StringConversation context this task belongs to.
status: TaskStatusCurrent task status (state + optional message + timestamp).
artifacts: Vec<Artifact>Artifacts produced by this task.
history: Vec<Message>Historical messages exchanged during this task.
metadata: HashMap<String, Value>Arbitrary metadata.
push_configs: Vec<TaskPushNotificationConfig>Push notification configurations for this task.
created_at: DateTime<Utc>Timestamp when the task was created.
updated_at: DateTime<Utc>Timestamp when the task was last updated.
version: u64Goes up by one with each save; a store refuses a write made from an older version
(TaskStore::save_task_if_version).
Implementations§
Source§impl TaskStoreEntry
impl TaskStoreEntry
Sourcepub fn owner(&self) -> Option<&str>
pub fn owner(&self) -> Option<&str>
The authenticated user that created the task, or None for a task created
without authentication. Read from OWNER_METADATA_KEY.
Trait Implementations§
Source§impl Clone for TaskStoreEntry
impl Clone for TaskStoreEntry
Auto Trait Implementations§
impl Forget for TaskStoreEntry
impl Freeze for TaskStoreEntrywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Part>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<String>: Freeze,
PhantomData<TaskId>: Freeze,
PhantomData<Artifact>: Freeze,
PhantomData<Message>: Freeze,
PhantomData<(String, Value)>: Freeze,
PhantomData<TaskPushNotificationConfig>: Freeze,
NonZero<i32>: Freeze,
Utc: Freeze,
impl Move for TaskStoreEntry
impl RefUnwindSafe for TaskStoreEntry
impl Send for TaskStoreEntry
impl Sync for TaskStoreEntry
impl Unpin for TaskStoreEntry
impl UnsafeUnpin for TaskStoreEntrywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Part>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<TaskId>: UnsafeUnpin,
PhantomData<Artifact>: UnsafeUnpin,
PhantomData<Message>: UnsafeUnpin,
PhantomData<(String, Value)>: UnsafeUnpin,
PhantomData<TaskPushNotificationConfig>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
impl UnwindSafe for TaskStoreEntrywhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
HashMap<String, Value>: UnwindSafe,
NonZero<i32>: UnwindSafe,
Utc: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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