pub struct ApiMessage {
pub model: Option<String>,
pub role: Option<String>,
pub stop_reason: Option<String>,
pub usage: Option<TokenUsage>,
pub content: Option<Vec<ContentBlock>>,
}Expand description
The inner API message returned by Claude.
Fields§
§model: Option<String>§role: Option<String>§stop_reason: Option<String>§usage: Option<TokenUsage>§content: Option<Vec<ContentBlock>>Trait Implementations§
Source§impl Debug for ApiMessage
impl Debug for ApiMessage
Source§impl<'de> Deserialize<'de> for ApiMessage
impl<'de> Deserialize<'de> for ApiMessage
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
Auto Trait Implementations§
impl Freeze for ApiMessage
impl RefUnwindSafe for ApiMessage
impl Send for ApiMessage
impl Sync for ApiMessage
impl Unpin for ApiMessage
impl UnsafeUnpin for ApiMessage
impl UnwindSafe for ApiMessage
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