#[non_exhaustive]pub struct StandardConfig {
pub mailto: Option<String>,
pub cache: Option<Arc<dyn Cache>>,
pub openalex: Option<OpenAlexConfig>,
pub crossref: Option<CrossrefConfig>,
pub datacite: Option<DataciteConfig>,
pub doi: Option<DoiConfig>,
pub europepmc: Option<EuropePmcConfig>,
pub openlibrary: Option<OpenLibraryConfig>,
}Expand description
Settings for the compiled-in providers. None disables a provider.
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.mailto: Option<String>Contact address sent in the user agent (and as Crossref’s mailto).
cache: Option<Arc<dyn Cache>>Where provider answers are cached; None for no cache.
openalex: Option<OpenAlexConfig>§crossref: Option<CrossrefConfig>§datacite: Option<DataciteConfig>§doi: Option<DoiConfig>§europepmc: Option<EuropePmcConfig>§openlibrary: Option<OpenLibraryConfig>Trait Implementations§
Source§impl Clone for StandardConfig
impl Clone for StandardConfig
Auto Trait Implementations§
impl !RefUnwindSafe for StandardConfig
impl !UnwindSafe for StandardConfig
impl Forget for StandardConfig
impl Freeze for StandardConfig
impl Send for StandardConfig
impl Sync for StandardConfig
impl Unpin for StandardConfig
impl UnsafeUnpin for StandardConfig
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