pub struct SendResponse {
pub agent: CompactString,
pub content: String,
pub session: u64,
}Expand description
Complete response from an agent.
Fields§
§agent: CompactStringSource agent identifier.
content: StringResponse content.
session: u64Session ID used for this request.
Trait Implementations§
Source§impl Clone for SendResponse
impl Clone for SendResponse
Source§fn clone(&self) -> SendResponse
fn clone(&self) -> SendResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SendResponse
impl Debug for SendResponse
Source§impl<'de> Deserialize<'de> for SendResponse
impl<'de> Deserialize<'de> for SendResponse
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<SendResponse> for ServerMessage
impl From<SendResponse> for ServerMessage
Source§fn from(r: SendResponse) -> Self
fn from(r: SendResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for SendResponse
impl Serialize for SendResponse
Source§impl TryFrom<ServerMessage> for SendResponse
impl TryFrom<ServerMessage> for SendResponse
Auto Trait Implementations§
impl Freeze for SendResponse
impl RefUnwindSafe for SendResponse
impl Send for SendResponse
impl Sync for SendResponse
impl Unpin for SendResponse
impl UnsafeUnpin for SendResponse
impl UnwindSafe for SendResponse
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