#[non_exhaustive]pub struct OpenAlexConfig {
pub api_key: Option<SecretBox<str>>,
pub base_url: String,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.api_key: Option<SecretBox<str>>Without a key OpenAlex allows $0.10/day; with a free key, $1/day.
base_url: StringTrait Implementations§
Source§impl Clone for OpenAlexConfig
impl Clone for OpenAlexConfig
Source§fn clone(&self) -> OpenAlexConfig
fn clone(&self) -> OpenAlexConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenAlexConfig
impl Debug for OpenAlexConfig
Source§impl Default for OpenAlexConfig
impl Default for OpenAlexConfig
Source§fn default() -> OpenAlexConfig
fn default() -> OpenAlexConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for OpenAlexConfig
impl Freeze for OpenAlexConfig
impl RefUnwindSafe for OpenAlexConfig
impl Send for OpenAlexConfig
impl Sync for OpenAlexConfig
impl Unpin for OpenAlexConfig
impl UnsafeUnpin for OpenAlexConfig
impl UnwindSafe for OpenAlexConfig
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