pub enum MembersFilter {
Prefix(String),
BackfileDoiCount(i32),
CurrentDoiCount(i32),
}Expand description
Narrows a /members query.
has-public-references and reference-visibility used to be here; the
route rejects both with a 400. blackfile-doi-count was a typo for
backfile-doi-count and never matched anything either.
Variants§
Prefix(String)
members that own the given DOI prefix
BackfileDoiCount(i32)
count of DOIs for material published more than two years ago
CurrentDoiCount(i32)
count of DOIs for material published within the last two years
Implementations§
Source§impl MembersFilter
impl MembersFilter
Sourcepub const ALL_NAMES: &'static [&'static str]
pub const ALL_NAMES: &'static [&'static str]
Every filter name this route accepts, in declaration order.
Pinned against the list crossref reports in its 400 body by
the coverage tests, so it is the vocabulary of the live api
rather than of this crate’s enum.
Sourcepub fn from_name(
name: &str,
value: Option<&str>,
) -> Result<Self, FilterParseError>
pub fn from_name( name: &str, value: Option<&str>, ) -> Result<Self, FilterParseError>
The filter crossref knows by this name, carrying this value –
the inverse of name, for callers that learn a
filter at runtime rather than writing it out.
A marker takes no value, or the true it renders as; every
other filter takes one, parsed into whatever that filter
carries, so a date that is not a date is caught here rather
than by crossref.
Trait Implementations§
Source§impl Clone for MembersFilter
impl Clone for MembersFilter
Source§impl Debug for MembersFilter
impl Debug for MembersFilter
impl Eq for MembersFilter
impl Filter for MembersFilter
Source§impl ParamFragment for MembersFilter
impl ParamFragment for MembersFilter
Source§impl PartialEq for MembersFilter
impl PartialEq for MembersFilter
impl StructuralPartialEq for MembersFilter
Auto Trait Implementations§
impl Freeze for MembersFilter
impl RefUnwindSafe for MembersFilter
impl Send for MembersFilter
impl Sync for MembersFilter
impl Unpin for MembersFilter
impl UnsafeUnpin for MembersFilter
impl UnwindSafe for MembersFilter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.