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