pub struct MessageStart {
pub id: String,
pub model: String,
pub role: String,
pub content: Vec<MessageContent>,
pub stop_reason: Option<String>,
pub stop_sequence: Option<String>,
pub usage: Option<Usage>,
}Fields§
§id: String§model: String§role: String§content: Vec<MessageContent>§stop_reason: Option<String>§stop_sequence: Option<String>§usage: Option<Usage>Trait Implementations§
Source§impl Clone for MessageStart
impl Clone for MessageStart
Source§fn clone(&self) -> MessageStart
fn clone(&self) -> MessageStart
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 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
Source§impl PartialEq for MessageStart
impl PartialEq for MessageStart
Source§impl Serialize for MessageStart
impl Serialize for MessageStart
impl StructuralPartialEq for MessageStart
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