#[non_exhaustive]pub struct Annotations {
pub audience: Option<Vec<Role>>,
pub last_modified: Option<String>,
pub priority: Option<f64>,
pub meta: Option<Meta>,
}Expand description
Optional annotations for the client. The client can use annotations to inform how objects are used or displayed
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.audience: Option<Vec<Role>>Intended recipients for this content, such as the user or assistant.
last_modified: Option<String>Timestamp indicating when the underlying resource was last modified.
priority: Option<f64>Relative importance of this content when clients choose what to surface.
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 Annotations
impl Annotations
Sourcepub fn audience(self, audience: impl IntoOption<Vec<Role>>) -> Self
pub fn audience(self, audience: impl IntoOption<Vec<Role>>) -> Self
Sets or clears the optional audience field.
Sourcepub fn last_modified(self, last_modified: impl IntoOption<String>) -> Self
pub fn last_modified(self, last_modified: impl IntoOption<String>) -> Self
Sets or clears the optional lastModified field.
Sourcepub fn priority(self, priority: impl IntoOption<f64>) -> Self
pub fn priority(self, priority: impl IntoOption<f64>) -> Self
Sets or clears the optional priority field.
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 Annotations
impl Clone for Annotations
Source§fn clone(&self) -> Annotations
fn clone(&self) -> Annotations
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 Annotations
impl Debug for Annotations
Source§impl Default for Annotations
impl Default for Annotations
Source§fn default() -> Annotations
fn default() -> Annotations
Source§impl<'de> Deserialize<'de> for Annotations
impl<'de> Deserialize<'de> for Annotations
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>,
Source§impl IntoV2 for Annotations
Available on crate feature unstable_protocol_v2 only.
impl IntoV2 for Annotations
unstable_protocol_v2 only.Source§impl JsonSchema for Annotations
impl JsonSchema for Annotations
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 Annotations
impl PartialEq for Annotations
Source§fn eq(&self, other: &Annotations) -> bool
fn eq(&self, other: &Annotations) -> bool
self and other values to be equal, and is used by ==.