Struct libads::Api
[−]
[src]
pub struct Api { /* fields omitted */ }
Methods
impl Api
[src]
fn init(logger: Option<Logger>) -> Self
[src]
Initialize API
Either provide a custom slog::Logger or default to the standard log
crate.
Examples
libads::Api::init(None);
fn fetch_bibtex_with_key(&self, key: BibCode) -> Option<String>
[src]
Fetch BibTeX entries from ADS
Examples
let ads = libads::Api::init(None); println!( "{}", ads.fetch_bibtex_with_key( libads::BibCode::new("2015MNRAS.452.2597X").expect("Good bibcode") ).expect("ADS record exists") );