pub struct CrossrefBuilder { /* private fields */ }
Expand description
Implementations§
Source§impl CrossrefBuilder
impl CrossrefBuilder
Sourcepub fn new() -> CrossrefBuilder
pub fn new() -> CrossrefBuilder
Constructs a new CrossrefBuilder
.
This is the same as Crossref::builder()
.
Sourcepub fn polite(self, email: &str) -> Self
pub fn polite(self, email: &str) -> Self
be polite and set your email as User-Agent
will get you in the polite pool of crossref
Sourcepub fn user_agent(self, user_agent: &str) -> Self
pub fn user_agent(self, user_agent: &str) -> Self
set the user agent directly
Trait Implementations§
Source§impl Default for CrossrefBuilder
impl Default for CrossrefBuilder
Source§fn default() -> CrossrefBuilder
fn default() -> CrossrefBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CrossrefBuilder
impl RefUnwindSafe for CrossrefBuilder
impl Send for CrossrefBuilder
impl Sync for CrossrefBuilder
impl Unpin for CrossrefBuilder
impl UnwindSafe for CrossrefBuilder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more