#[non_exhaustive]pub struct RunningStateUpdate {
pub background: Option<Vec<BackgroundWork>>,
pub meta: Option<Meta>,
}unstable_protocol_v2 only.Expand description
Foreground work is in progress.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.background: Option<Vec<BackgroundWork>>Work running independently of foreground work, as a complete snapshot.
Optional. Omitted and null are equivalent and mean the Agent is not reporting
background work, not that nothing is running. [] means no background work is
running. An Agent that reports background work MUST include it on every state
update for the session. A malformed list is treated as not reported.
See protocol docs: Background Work
meta: Option<Meta>The _meta property is reserved by ACP to allow clients and agents to attach additional
metadata to their interactions. Omitted and null are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.
See protocol docs: Extensibility
Implementations§
Source§impl RunningStateUpdate
impl RunningStateUpdate
Sourcepub fn new() -> Self
pub fn new() -> Self
Builds RunningStateUpdate with the required fields set. Optional fields start unset or empty.
Sourcepub fn background(
self,
background: impl IntoOption<Vec<BackgroundWork>>,
) -> Self
pub fn background( self, background: impl IntoOption<Vec<BackgroundWork>>, ) -> Self
Work running independently of foreground work, as a complete snapshot.
Sourcepub fn meta(self, meta: impl IntoOption<Meta>) -> Self
pub fn meta(self, meta: impl IntoOption<Meta>) -> Self
The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT assign meaning to keys they do not recognize.
See protocol docs: Extensibility
Trait Implementations§
Source§impl Clone for RunningStateUpdate
impl Clone for RunningStateUpdate
Source§impl Debug for RunningStateUpdate
impl Debug for RunningStateUpdate
Source§impl Default for RunningStateUpdate
impl Default for RunningStateUpdate
Source§impl<'de> Deserialize<'de> for RunningStateUpdate
impl<'de> Deserialize<'de> for RunningStateUpdate
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>,
impl Eq for RunningStateUpdate
Source§impl JsonSchema for RunningStateUpdate
impl JsonSchema for RunningStateUpdate
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for RunningStateUpdate
impl PartialEq for RunningStateUpdate
Source§impl Serialize for RunningStateUpdate
impl Serialize for RunningStateUpdate
impl StructuralPartialEq for RunningStateUpdate
Auto Trait Implementations§
impl Freeze for RunningStateUpdate
impl RefUnwindSafe for RunningStateUpdate
impl Send for RunningStateUpdate
impl Sync for RunningStateUpdate
impl Unpin for RunningStateUpdate
impl UnsafeUnpin for RunningStateUpdate
impl UnwindSafe for RunningStateUpdate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.