pub struct MessageDeltaObjectDelta {
pub role: Option<MessageDeltaObjectDeltaRole>,
pub content: Option<Vec<MessageContentDelta>>,
}
Expand description
The delta containing the fields that have changed on the Message.
Fields§
§role: Option<MessageDeltaObjectDeltaRole>
The entity that produced the message. One of user
or assistant
.
content: Option<Vec<MessageContentDelta>>
The content of the message in array of text and/or images.
Implementations§
Trait Implementations§
Source§impl Clone for MessageDeltaObjectDelta
impl Clone for MessageDeltaObjectDelta
Source§fn clone(&self) -> MessageDeltaObjectDelta
fn clone(&self) -> MessageDeltaObjectDelta
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 MessageDeltaObjectDelta
impl Debug for MessageDeltaObjectDelta
Source§impl Default for MessageDeltaObjectDelta
impl Default for MessageDeltaObjectDelta
Source§fn default() -> MessageDeltaObjectDelta
fn default() -> MessageDeltaObjectDelta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageDeltaObjectDelta
impl<'de> Deserialize<'de> for MessageDeltaObjectDelta
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 MessageDeltaObjectDelta
impl PartialEq for MessageDeltaObjectDelta
Source§impl Serialize for MessageDeltaObjectDelta
impl Serialize for MessageDeltaObjectDelta
impl StructuralPartialEq for MessageDeltaObjectDelta
Auto Trait Implementations§
impl Freeze for MessageDeltaObjectDelta
impl RefUnwindSafe for MessageDeltaObjectDelta
impl Send for MessageDeltaObjectDelta
impl Sync for MessageDeltaObjectDelta
impl Unpin for MessageDeltaObjectDelta
impl UnwindSafe for MessageDeltaObjectDelta
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