Struct arxiv::Arxiv[][src]

pub struct Arxiv {
    pub id: String,
    pub updated: String,
    pub published: String,
    pub title: String,
    pub summary: String,
    pub authors: Vec<String>,
    pub pdf_url: String,
    pub comment: Option<String>,
}

A structure that stores the paper information.

Fields

id: Stringupdated: Stringpublished: Stringtitle: Stringsummary: Stringauthors: Vec<String>pdf_url: Stringcomment: Option<String>

Implementations

impl Arxiv[src]

pub fn new() -> Self[src]

pub async fn fetch_pdf(&self, out_path: &str) -> Result<()>[src]

Save the paper as a pdf from the information stored by the structure.

Trait Implementations

impl Clone for Arxiv[src]

impl Debug for Arxiv[src]

impl Default for Arxiv[src]

impl Eq for Arxiv[src]

impl PartialEq<Arxiv> for Arxiv[src]

impl StructuralEq for Arxiv[src]

impl StructuralPartialEq for Arxiv[src]

Auto Trait Implementations

impl RefUnwindSafe for Arxiv

impl Send for Arxiv

impl Sync for Arxiv

impl Unpin for Arxiv

impl UnwindSafe for Arxiv

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument 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.