#[non_exhaustive]pub struct SessionInfoUpdate {
pub title: MaybeUndefined<String>,
pub updated_at: MaybeUndefined<String>,
pub meta: Option<Meta>,
}Expand description
Update to session metadata. All fields are optional to support partial updates.
Agents send this notification to update session information like title or custom metadata. This allows clients to display dynamic session names and track session state changes.
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.title: MaybeUndefined<String>Human-readable title for the session. Set to null to clear.
updated_at: MaybeUndefined<String>ISO 8601 timestamp of last activity. Set to null to clear.
meta: Option<Meta>The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Implementations§
Source§impl SessionInfoUpdate
impl SessionInfoUpdate
Sourcepub fn new() -> Self
pub fn new() -> Self
Builds SessionInfoUpdate with the required fields set; optional fields start unset or empty.
Sourcepub fn title(self, title: impl IntoMaybeUndefined<String>) -> Self
pub fn title(self, title: impl IntoMaybeUndefined<String>) -> Self
Human-readable title for the session. Set to null to clear.
Sourcepub fn updated_at(self, updated_at: impl IntoMaybeUndefined<String>) -> Self
pub fn updated_at(self, updated_at: impl IntoMaybeUndefined<String>) -> Self
ISO 8601 timestamp of last activity. Set to null to clear.
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 make assumptions about values at these keys.
See protocol docs: Extensibility
Trait Implementations§
Source§impl Clone for SessionInfoUpdate
impl Clone for SessionInfoUpdate
Source§fn clone(&self) -> SessionInfoUpdate
fn clone(&self) -> SessionInfoUpdate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SessionInfoUpdate
impl Debug for SessionInfoUpdate
Source§impl Default for SessionInfoUpdate
impl Default for SessionInfoUpdate
Source§fn default() -> SessionInfoUpdate
fn default() -> SessionInfoUpdate
Source§impl<'de> Deserialize<'de> for SessionInfoUpdate
impl<'de> Deserialize<'de> for SessionInfoUpdate
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 SessionInfoUpdate
Source§impl IntoV2 for SessionInfoUpdate
Available on crate feature unstable_protocol_v2 only.
impl IntoV2 for SessionInfoUpdate
unstable_protocol_v2 only.Source§impl JsonSchema for SessionInfoUpdate
impl JsonSchema for SessionInfoUpdate
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 SessionInfoUpdate
impl PartialEq for SessionInfoUpdate
Source§fn eq(&self, other: &SessionInfoUpdate) -> bool
fn eq(&self, other: &SessionInfoUpdate) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for SessionInfoUpdate
impl Serialize for SessionInfoUpdate
impl StructuralPartialEq for SessionInfoUpdate
Auto Trait Implementations§
impl Freeze for SessionInfoUpdate
impl RefUnwindSafe for SessionInfoUpdate
impl Send for SessionInfoUpdate
impl Sync for SessionInfoUpdate
impl Unpin for SessionInfoUpdate
impl UnsafeUnpin for SessionInfoUpdate
impl UnwindSafe for SessionInfoUpdate
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.