pub struct SourceDocumentUIPart {
pub source_id: String,
pub media_type: String,
pub title: String,
pub filename: Option<String>,
pub provider_metadata: Option<Value>,
/* private fields */
}Expand description
Document source reference.
Fields§
§source_id: StringSource identifier.
media_type: StringIANA media type.
title: StringDocument title.
filename: Option<String>Optional filename.
provider_metadata: Option<Value>Optional provider metadata.
Trait Implementations§
Source§impl Clone for SourceDocumentUIPart
impl Clone for SourceDocumentUIPart
Source§fn clone(&self) -> SourceDocumentUIPart
fn clone(&self) -> SourceDocumentUIPart
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 SourceDocumentUIPart
impl Debug for SourceDocumentUIPart
Source§impl<'de> Deserialize<'de> for SourceDocumentUIPart
impl<'de> Deserialize<'de> for SourceDocumentUIPart
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 SourceDocumentUIPart
impl PartialEq for SourceDocumentUIPart
Source§impl Serialize for SourceDocumentUIPart
impl Serialize for SourceDocumentUIPart
impl StructuralPartialEq for SourceDocumentUIPart
Auto Trait Implementations§
impl Freeze for SourceDocumentUIPart
impl RefUnwindSafe for SourceDocumentUIPart
impl Send for SourceDocumentUIPart
impl Sync for SourceDocumentUIPart
impl Unpin for SourceDocumentUIPart
impl UnwindSafe for SourceDocumentUIPart
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