pub struct CompletionMessage {
pub content: String,
pub role: String,
}
Fields§
§content: String
§role: String
Implementations§
Source§impl CompletionMessage
impl CompletionMessage
pub fn new(content: String, role: String) -> CompletionMessage
Trait Implementations§
Source§impl Clone for CompletionMessage
impl Clone for CompletionMessage
Source§fn clone(&self) -> CompletionMessage
fn clone(&self) -> CompletionMessage
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 CompletionMessage
impl Debug for CompletionMessage
Source§impl Default for CompletionMessage
impl Default for CompletionMessage
Source§fn default() -> CompletionMessage
fn default() -> CompletionMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CompletionMessage
impl<'de> Deserialize<'de> for CompletionMessage
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 CompletionMessage
impl PartialEq for CompletionMessage
Source§impl Serialize for CompletionMessage
impl Serialize for CompletionMessage
impl StructuralPartialEq for CompletionMessage
Auto Trait Implementations§
impl Freeze for CompletionMessage
impl RefUnwindSafe for CompletionMessage
impl Send for CompletionMessage
impl Sync for CompletionMessage
impl Unpin for CompletionMessage
impl UnwindSafe for CompletionMessage
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