pub struct ActivityMessage {
pub id: MessageId,
pub activity_type: String,
pub content: JsonObject,
}Expand description
A structured progress update the client renders as it likes.
Fields§
§id: MessageIdMessage id.
activity_type: StringClient-defined activity discriminator, for example "web_search".
content: JsonObjectThe activity payload.
Trait Implementations§
Source§impl Clone for ActivityMessage
impl Clone for ActivityMessage
Source§fn clone(&self) -> ActivityMessage
fn clone(&self) -> ActivityMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for ActivityMessage
Available on crate feature utoipa only.
impl ComposeSchema for ActivityMessage
Available on crate feature
utoipa only.Source§impl Debug for ActivityMessage
impl Debug for ActivityMessage
Source§impl Default for ActivityMessage
impl Default for ActivityMessage
Source§fn default() -> ActivityMessage
fn default() -> ActivityMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ActivityMessage
impl<'de> Deserialize<'de> for ActivityMessage
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
Source§impl From<ActivityMessage> for Message
impl From<ActivityMessage> for Message
Source§fn from(value: ActivityMessage) -> Self
fn from(value: ActivityMessage) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for ActivityMessage
Available on crate feature schemars only.
impl JsonSchema for ActivityMessage
Available on crate feature
schemars only.Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ActivityMessage
impl PartialEq for ActivityMessage
Source§impl Serialize for ActivityMessage
impl Serialize for ActivityMessage
impl StructuralPartialEq for ActivityMessage
Auto Trait Implementations§
impl Freeze for ActivityMessage
impl RefUnwindSafe for ActivityMessage
impl Send for ActivityMessage
impl Sync for ActivityMessage
impl Unpin for ActivityMessage
impl UnsafeUnpin for ActivityMessage
impl UnwindSafe for ActivityMessage
Blanket Implementations§
impl<T> AgentState for T
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