[][src]Struct uniprot::model::reference::Citation

pub struct Citation {
    pub ty: CitationType,
    pub name: Option<String>,
    pub volume: Option<String>,
    pub first: Option<String>,
    pub last: Option<String>,
    pub publisher: Option<String>,
    pub city: Option<String>,
    pub db: Option<String>,
    pub number: Option<String>,
    pub titles: Vec<String>,
    pub editors: Vec<Creator>,
    pub authors: Vec<Creator>,
    pub locators: Vec<String>,
    pub db_references: Vec<DbReference>,
}

Describes a single citation.

Fields

ty: CitationTypename: Option<String>volume: Option<String>first: Option<String>last: Option<String>publisher: Option<String>city: Option<String>db: Option<String>number: Option<String>titles: Vec<String>

Describes the title of a citation.

editors: Vec<Creator>

Describes the editors of a book (only used for books).

authors: Vec<Creator>

Describes the authors of a citation.

locators: Vec<String>

Describes the location (URL) of an online journal article

db_references: Vec<DbReference>

Describes cross-references to bibliography databases (MEDLINE, PubMed, AGRICOLA) or other online resources (DOI).

Methods

impl Citation[src]

pub fn new(ty: CitationType) -> Self[src]

Trait Implementations

impl Clone for Citation[src]

impl Debug for Citation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.