pub enum SearchStatus {
Ok,
Empty,
Blocked,
}Expand description
Whether a search actually answered.
Without this, a bot-challenge page (served with HTTP 200 and no result rows) and a query with genuinely no hits were the same observable outcome: zero results and a success exit. Callers could not tell “the web has no answer” from “I was refused”, and agents reliably concluded the former.
Variants§
Ok
Results were parsed.
Empty
A real results page that reported no hits.
Blocked
A challenge, rate-limit, or otherwise unparseable page. A failure.
Implementations§
Source§impl SearchStatus
impl SearchStatus
Sourcepub fn is_failure(self) -> bool
pub fn is_failure(self) -> bool
Did the search fail to answer? Drives the CLI exit code and the MCP
isError flag.
Trait Implementations§
Source§impl Clone for SearchStatus
impl Clone for SearchStatus
Source§fn clone(&self) -> SearchStatus
fn clone(&self) -> SearchStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SearchStatus
Source§impl Debug for SearchStatus
impl Debug for SearchStatus
Source§impl<'de> Deserialize<'de> for SearchStatus
impl<'de> Deserialize<'de> for SearchStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SearchStatus
Source§impl PartialEq for SearchStatus
impl PartialEq for SearchStatus
Source§impl Serialize for SearchStatus
impl Serialize for SearchStatus
impl StructuralPartialEq for SearchStatus
Auto Trait Implementations§
impl Freeze for SearchStatus
impl RefUnwindSafe for SearchStatus
impl Send for SearchStatus
impl Sync for SearchStatus
impl Unpin for SearchStatus
impl UnsafeUnpin for SearchStatus
impl UnwindSafe for SearchStatus
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