pub struct Refine { /* private fields */ }Expand description
What to ask of a citation listing beyond the identifier itself.
The api applies all of it before answering, so a narrow listing is one response rather than one response and a lot of discarding.
use opencitations_client::{Field, Filter, Refine, Sort};
// the citations this work picked up since 2024, earliest first
let refine = Refine::new()
.filter(Filter::greater_than(Field::Creation, "2023"))
.sort(Sort::ascending(Field::Creation));Implementations§
Trait Implementations§
impl Eq for Refine
impl StructuralPartialEq for Refine
Auto Trait Implementations§
impl Freeze for Refine
impl RefUnwindSafe for Refine
impl Send for Refine
impl Sync for Refine
impl Unpin for Refine
impl UnsafeUnpin for Refine
impl UnwindSafe for Refine
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> 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
Compare self to
key and return true if they are equal.