pub struct SessionPreviewCandidate {
pub role: String,
pub content: String,
pub metadata: HashMap<String, String>,
}Expand description
One bounded normalized conversation-message candidate for list projection.
Fields§
§role: StringCanonical conversation role. Older clients may assume user when this
field is absent from an older server.
content: StringCanonical text content.
metadata: HashMap<String, String>Canonical provenance used by the normal conversation visibility rules.
Trait Implementations§
Source§impl Clone for SessionPreviewCandidate
impl Clone for SessionPreviewCandidate
Source§fn clone(&self) -> SessionPreviewCandidate
fn clone(&self) -> SessionPreviewCandidate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SessionPreviewCandidate
impl Debug for SessionPreviewCandidate
Source§impl<'de> Deserialize<'de> for SessionPreviewCandidate
impl<'de> Deserialize<'de> for SessionPreviewCandidate
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
impl Eq for SessionPreviewCandidate
Source§impl PartialEq for SessionPreviewCandidate
impl PartialEq for SessionPreviewCandidate
Source§impl Serialize for SessionPreviewCandidate
impl Serialize for SessionPreviewCandidate
impl StructuralPartialEq for SessionPreviewCandidate
Auto Trait Implementations§
impl Freeze for SessionPreviewCandidate
impl RefUnwindSafe for SessionPreviewCandidate
impl Send for SessionPreviewCandidate
impl Sync for SessionPreviewCandidate
impl Unpin for SessionPreviewCandidate
impl UnsafeUnpin for SessionPreviewCandidate
impl UnwindSafe for SessionPreviewCandidate
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