Struct llm_weaver::ContextMessage
source · pub struct ContextMessage<T: Config> {
pub role: WrapperRole,
pub content: String,
pub account_id: Option<String>,
pub timestamp: String,
/* private fields */
}
Expand description
Context message that represent a single message in a TapestryFragment
instance.
Fields§
§role: WrapperRole
§content: String
§account_id: Option<String>
§timestamp: String
Implementations§
Trait Implementations§
source§impl<T: Clone + Config> Clone for ContextMessage<T>
impl<T: Clone + Config> Clone for ContextMessage<T>
source§fn clone(&self) -> ContextMessage<T>
fn clone(&self) -> ContextMessage<T>
Returns a copy 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<'de, T: Config> Deserialize<'de> for ContextMessage<T>
impl<'de, T: Config> Deserialize<'de> for ContextMessage<T>
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<T> Freeze for ContextMessage<T>
impl<T> RefUnwindSafe for ContextMessage<T>where
T: RefUnwindSafe,
impl<T> Send for ContextMessage<T>
impl<T> Sync for ContextMessage<T>
impl<T> Unpin for ContextMessage<T>where
T: Unpin,
impl<T> UnwindSafe for ContextMessage<T>where
T: UnwindSafe,
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