[][src]Struct libinspire::Api

pub struct Api { /* fields omitted */ }

Methods

impl Api[src]

pub fn init(logger: Option<Logger>) -> Self[src]

Initialize API

Either provide a custom slog::Logger or default to the standard log crate.

Examples

libinspire::Api::init(None);

pub fn fetch_bibtex_with_key(&self, key: RecID) -> Option<String>[src]

Fetches BibTeX entries from old.inspire.net.

Examples

let inspire = libinspire::Api::init(None);

println!("{}", inspire.fetch_bibtex_with_key(
    libinspire::RecID::new("Abramovici:1992ah").unwrap()).expect("Error"));

Auto Trait Implementations

impl !RefUnwindSafe for Api

impl Send for Api

impl Sync for Api

impl Unpin for Api

impl !UnwindSafe for Api

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> Sealed<T> for T where
    T: ?Sized

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.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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