pub enum LookupOutcome {
Matched {
scope: LookupScope,
limit: usize,
results: Vec<LookupHit>,
},
UnknownWithin {
within: LookupWithin,
},
Unsupported {
scope: LookupScope,
reason: String,
},
}Expand description
The result of a lookup.
Variants§
Matched
The query was answered (possibly with no hits when nothing matched).
Fields
§
scope: LookupScopeThe namespaces searched.
UnknownWithin
The within selector names no scope the vocabulary knows; the
request carried no matches because the scope itself does not exist.
Fields
§
within: LookupWithinThe selector that named nothing.
Unsupported
The query is valid but the requested capability is not served: nothing was searched.
Fields
§
scope: LookupScopeThe namespaces that would have been searched.
Implementations§
Trait Implementations§
Source§impl Clone for LookupOutcome
impl Clone for LookupOutcome
Source§impl Debug for LookupOutcome
impl Debug for LookupOutcome
Source§impl PartialEq for LookupOutcome
impl PartialEq for LookupOutcome
Source§impl Serialize for LookupOutcome
impl Serialize for LookupOutcome
impl StructuralPartialEq for LookupOutcome
Auto Trait Implementations§
impl Freeze for LookupOutcome
impl RefUnwindSafe for LookupOutcome
impl Send for LookupOutcome
impl Sync for LookupOutcome
impl Unpin for LookupOutcome
impl UnsafeUnpin for LookupOutcome
impl UnwindSafe for LookupOutcome
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