pub struct Msg {
pub role: Role,
pub content: Option<String>,
pub name: Option<String>,
pub function_call: Option<FunctionCall>,
}
Fields§
§role: Role
Usually
content: Option<String>
§name: Option<String>
§function_call: Option<FunctionCall>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Msg
impl<'de> Deserialize<'de> for Msg
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 Msg
impl RefUnwindSafe for Msg
impl Send for Msg
impl Sync for Msg
impl Unpin for Msg
impl UnwindSafe for Msg
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