pub struct MessagesResponse {
pub id: String,
pub response_type: String,
pub role: String,
pub content: Vec<ContentBlock>,
pub model: String,
pub stop_reason: Option<String>,
pub usage: Usage,
}Expand description
Claude API response.
Fields§
§id: String§response_type: String§role: String§content: Vec<ContentBlock>§model: String§stop_reason: Option<String>§usage: UsageTrait Implementations§
Source§impl Debug for MessagesResponse
impl Debug for MessagesResponse
Source§impl<'de> Deserialize<'de> for MessagesResponse
impl<'de> Deserialize<'de> for MessagesResponse
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 MessagesResponse
impl RefUnwindSafe for MessagesResponse
impl Send for MessagesResponse
impl Sync for MessagesResponse
impl Unpin for MessagesResponse
impl UnsafeUnpin for MessagesResponse
impl UnwindSafe for MessagesResponse
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