#[non_exhaustive]pub struct Capabilities {
pub lookup_kinds: Vec<IdKind>,
pub max_batch: usize,
pub fields: FieldSet,
pub search: bool,
pub citation_search: bool,
pub notices: bool,
pub search_filters: Vec<Filter>,
pub citations: bool,
pub references: bool,
pub recommend: bool,
}Expand description
What a provider can do. The engine routes on this before calling.
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.lookup_kinds: Vec<IdKind>Identifier kinds Provider::lookup accepts.
max_batch: usizeMost IDs per lookup call; the engine splits larger batches. 0 is
treated as 1.
fields: FieldSetFields this provider can supply at all.
search: bool§citation_search: boolSupports SearchMode::Citation: a matcher built for reference
strings, not just keyword search.
notices: boolReports editorial notices in detail and in both directions (a work’s corrections, a correction’s work), so the engine asks it about records other providers supplied.
search_filters: Vec<Filter>§citations: bool§references: bool§recommend: boolTrait Implementations§
Source§impl Clone for Capabilities
impl Clone for Capabilities
Source§impl Debug for Capabilities
impl Debug for Capabilities
Source§impl Default for Capabilities
impl Default for Capabilities
impl Eq for Capabilities
Source§impl PartialEq for Capabilities
impl PartialEq for Capabilities
impl StructuralPartialEq for Capabilities
Auto Trait Implementations§
impl Forget for Capabilities
impl Freeze for Capabilities
impl RefUnwindSafe for Capabilities
impl Send for Capabilities
impl Sync for Capabilities
impl Unpin for Capabilities
impl UnsafeUnpin for Capabilities
impl UnwindSafe for Capabilities
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