pub struct CitationSource {
pub uri: Option<String>,
pub title: Option<String>,
pub start_index: Option<i32>,
pub end_index: Option<i32>,
pub license: Option<String>,
pub publication_date: Option<OffsetDateTime>,
}
Expand description
Citation source
Fields§
§uri: Option<String>
The URI of the citation source
title: Option<String>
The title of the citation source
start_index: Option<i32>
The start index of the citation in the response
end_index: Option<i32>
The end index of the citation in the response
license: Option<String>
The license of the citation source
publication_date: Option<OffsetDateTime>
The publication date of the citation source
Trait Implementations§
Source§impl Clone for CitationSource
impl Clone for CitationSource
Source§fn clone(&self) -> CitationSource
fn clone(&self) -> CitationSource
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 CitationSource
impl Debug for CitationSource
Source§impl<'de> Deserialize<'de> for CitationSource
impl<'de> Deserialize<'de> for CitationSource
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 CitationSource
impl PartialEq for CitationSource
Source§impl Serialize for CitationSource
impl Serialize for CitationSource
impl StructuralPartialEq for CitationSource
Auto Trait Implementations§
impl Freeze for CitationSource
impl RefUnwindSafe for CitationSource
impl Send for CitationSource
impl Sync for CitationSource
impl Unpin for CitationSource
impl UnwindSafe for CitationSource
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