pub struct SourceDocumentPart {
pub source_id: String,
pub media_type: String,
pub title: String,
pub filename: Option<String>,
pub provider_metadata: Option<ProviderMetadata>,
}Expand description
Document source reference
References a document as a source with media type and title.
Fields§
§source_id: String§media_type: String§title: String§filename: Option<String>§provider_metadata: Option<ProviderMetadata>Trait Implementations§
Source§impl Clone for SourceDocumentPart
impl Clone for SourceDocumentPart
Source§fn clone(&self) -> SourceDocumentPart
fn clone(&self) -> SourceDocumentPart
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 SourceDocumentPart
impl Debug for SourceDocumentPart
Source§impl<'de> Deserialize<'de> for SourceDocumentPart
impl<'de> Deserialize<'de> for SourceDocumentPart
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 Freeze for SourceDocumentPart
impl RefUnwindSafe for SourceDocumentPart
impl Send for SourceDocumentPart
impl Sync for SourceDocumentPart
impl Unpin for SourceDocumentPart
impl UnwindSafe for SourceDocumentPart
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