pub struct MessageStart {
pub id: String,
pub role: String,
pub content: Vec<Content>,
pub model: String,
pub stop_reason: Option<String>,
pub stop_sequence: Option<String>,
pub usage: Usage,
}Fields§
§id: String§role: String§content: Vec<Content>§model: String§stop_reason: Option<String>§stop_sequence: Option<String>§usage: UsageTrait Implementations§
Source§impl Debug for MessageStart
impl Debug for MessageStart
Source§impl<'de> Deserialize<'de> for MessageStart
impl<'de> Deserialize<'de> for MessageStart
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 MessageStart
impl RefUnwindSafe for MessageStart
impl Send for MessageStart
impl Sync for MessageStart
impl Unpin for MessageStart
impl UnwindSafe for MessageStart
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