pub struct MessageStart {
pub role: Role,
pub model: String,
pub request_id: Option<String>,
}Expand description
Signals the start of a new message.
Fields§
§role: RoleMessage role.
model: StringModel identifier.
request_id: Option<String>Provider request identifier, when available.
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 (const: unstable) · 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 PartialEq for MessageStart
impl PartialEq for MessageStart
Source§impl StreamEvent for MessageStart
impl StreamEvent for MessageStart
Source§fn event_type(&self) -> &'static str
fn event_type(&self) -> &'static str
Stable event type emitted on the wire.
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 UnsafeUnpin 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