pub enum WebSearchProvider {
Auto,
Duckduckgo,
Youcom,
}Expand description
Web search provider identifier.
VT Code only targets the keyless DuckDuckGo HTML endpoint for web
search, so the provider enum is intentionally minimal. Auto defers to
the DDG default and is the recommended choice.
Variants§
Auto
Default; same as Duckduckgo for now (kept for back-compat).
Duckduckgo
Keyless DuckDuckGo HTML scraping (https://html.duckduckgo.com/html/).
Youcom
You.com Search API (https://ydc-index.io/v1/search). Requires a
YDC_API_KEY environment variable; the key is read at request time
and never logged. Opt-in only — the default provider stays
DuckDuckGo.
Trait Implementations§
Source§impl Clone for WebSearchProvider
impl Clone for WebSearchProvider
impl Copy for WebSearchProvider
Source§impl Debug for WebSearchProvider
impl Debug for WebSearchProvider
Source§impl Default for WebSearchProvider
impl Default for WebSearchProvider
Source§impl<'de> Deserialize<'de> for WebSearchProvider
impl<'de> Deserialize<'de> for WebSearchProvider
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 WebSearchProvider
Source§impl Hash for WebSearchProvider
impl Hash for WebSearchProvider
Source§impl JsonSchema for WebSearchProvider
impl JsonSchema for WebSearchProvider
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for WebSearchProvider
impl PartialEq for WebSearchProvider
Source§impl Serialize for WebSearchProvider
impl Serialize for WebSearchProvider
impl StructuralPartialEq for WebSearchProvider
Auto Trait Implementations§
impl Freeze for WebSearchProvider
impl RefUnwindSafe for WebSearchProvider
impl Send for WebSearchProvider
impl Sync for WebSearchProvider
impl Unpin for WebSearchProvider
impl UnsafeUnpin for WebSearchProvider
impl UnwindSafe for WebSearchProvider
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.