pub struct GptMessage { /* private fields */ }
Expand description
Individual message details in the request body.
Implementations§
Source§impl GptMessage
impl GptMessage
pub fn system_message(msg: &str) -> Self
pub fn user_message(msg: &str) -> Self
pub fn user_message_with_image(msg: &str, image_b64: &str) -> Self
Trait Implementations§
Source§impl Debug for GptMessage
impl Debug for GptMessage
Source§impl<'de> Deserialize<'de> for GptMessage
impl<'de> Deserialize<'de> for GptMessage
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 GptMessage
impl RefUnwindSafe for GptMessage
impl Send for GptMessage
impl Sync for GptMessage
impl Unpin for GptMessage
impl UnwindSafe for GptMessage
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