pub struct MessageDelta {
pub role: Option<Role>,
pub content: Option<String>,
}
Expand description
消息增量
Message delta
Fields§
§role: Option<Role>
§content: Option<String>
Trait Implementations§
Source§impl Clone for MessageDelta
impl Clone for MessageDelta
Source§fn clone(&self) -> MessageDelta
fn clone(&self) -> MessageDelta
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 moreAuto Trait Implementations§
impl Freeze for MessageDelta
impl RefUnwindSafe for MessageDelta
impl Send for MessageDelta
impl Sync for MessageDelta
impl Unpin for MessageDelta
impl UnwindSafe for MessageDelta
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