pub struct SessionMessage {
pub type_: String,
pub uuid: String,
pub session_id: String,
pub message: Value,
pub parent_tool_use_id: Option<String>,
}Expand description
User/assistant message returned by get_session_messages.
Fields§
§type_: StringMessage type ("user" or "assistant").
uuid: StringMessage UUID.
session_id: StringSession identifier.
message: ValueRaw Anthropic message payload.
parent_tool_use_id: Option<String>Always None for top-level conversation messages.
Trait Implementations§
Source§impl Clone for SessionMessage
impl Clone for SessionMessage
Source§fn clone(&self) -> SessionMessage
fn clone(&self) -> SessionMessage
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 SessionMessage
impl Debug for SessionMessage
Source§impl<'de> Deserialize<'de> for SessionMessage
impl<'de> Deserialize<'de> for SessionMessage
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 PartialEq for SessionMessage
impl PartialEq for SessionMessage
Source§impl Serialize for SessionMessage
impl Serialize for SessionMessage
impl StructuralPartialEq for SessionMessage
Auto Trait Implementations§
impl Freeze for SessionMessage
impl RefUnwindSafe for SessionMessage
impl Send for SessionMessage
impl Sync for SessionMessage
impl Unpin for SessionMessage
impl UnsafeUnpin for SessionMessage
impl UnwindSafe for SessionMessage
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