pub struct SourcePart {
    pub source: String,
    pub title: String,
    pub content: Vec<Part>,
}Expand description
A part of the message that contains a source with structured content. It will be used for citation for supported models.
Fields§
§source: StringThe URL or identifier of the document.
title: StringThe title of the document.
content: Vec<Part>The content of the document.
Implementations§
Trait Implementations§
Source§impl Clone for SourcePart
 
impl Clone for SourcePart
Source§fn clone(&self) -> SourcePart
 
fn clone(&self) -> SourcePart
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 SourcePart
 
impl Debug for SourcePart
Source§impl<'de> Deserialize<'de> for SourcePart
 
impl<'de> Deserialize<'de> for SourcePart
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 From<SourcePart> for Part
 
impl From<SourcePart> for Part
Source§fn from(value: SourcePart) -> Self
 
fn from(value: SourcePart) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SourcePart
 
impl PartialEq for SourcePart
Source§impl Serialize for SourcePart
 
impl Serialize for SourcePart
impl StructuralPartialEq for SourcePart
Auto Trait Implementations§
impl Freeze for SourcePart
impl RefUnwindSafe for SourcePart
impl Send for SourcePart
impl Sync for SourcePart
impl Unpin for SourcePart
impl UnwindSafe for SourcePart
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