pub struct MessageStartPayload {
pub id: Option<String>,
pub model: Option<String>,
pub usage: Option<Usage>,
}Expand description
Payload from the message_start SSE event (model, initial usage).
Fields§
§id: Option<String>§model: Option<String>§usage: Option<Usage>Trait Implementations§
Source§impl Debug for MessageStartPayload
impl Debug for MessageStartPayload
Source§impl<'de> Deserialize<'de> for MessageStartPayload
impl<'de> Deserialize<'de> for MessageStartPayload
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 MessageStartPayload
impl RefUnwindSafe for MessageStartPayload
impl Send for MessageStartPayload
impl Sync for MessageStartPayload
impl Unpin for MessageStartPayload
impl UnsafeUnpin for MessageStartPayload
impl UnwindSafe for MessageStartPayload
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