Struct CitationSource
pub struct CitationSource {
pub start_index: Option<i32>,
pub end_index: Option<i32>,
pub uri: Option<String>,
pub license: Option<String>,
}Expand description
A single citation source.
Fields§
§start_index: Option<i32>Start index in the generated text.
end_index: Option<i32>End index in the generated text.
uri: Option<String>URI of the cited source.
license: Option<String>License of the cited source.
Trait Implementations§
§impl Clone for CitationSource
impl Clone for CitationSource
§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 more§impl Debug for CitationSource
impl Debug for CitationSource
§impl<'de> Deserialize<'de> for CitationSource
impl<'de> Deserialize<'de> for CitationSource
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CitationSource, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CitationSource, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for CitationSource
impl Serialize for CitationSource
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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