pub struct WebSearchResultCard {
pub url: String,
pub domain: String,
pub title: Option<String>,
pub published_date: Option<String>,
pub author: Option<String>,
pub score: Option<u32>,
pub snippet: Option<String>,
}Expand description
A single result card from web search.
Fields§
§url: StringURL of the result
domain: StringDomain extracted from URL
title: Option<String>Page title
published_date: Option<String>Published date (if available)
Author (if available)
score: Option<u32>Relevance score (0-100)
snippet: Option<String>Short snippet (up to 300 chars) from highlights or summary
Trait Implementations§
Source§impl Clone for WebSearchResultCard
impl Clone for WebSearchResultCard
Source§fn clone(&self) -> WebSearchResultCard
fn clone(&self) -> WebSearchResultCard
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebSearchResultCard
impl Debug for WebSearchResultCard
Source§impl JsonSchema for WebSearchResultCard
impl JsonSchema for WebSearchResultCard
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 moreAuto Trait Implementations§
impl Freeze for WebSearchResultCard
impl RefUnwindSafe for WebSearchResultCard
impl Send for WebSearchResultCard
impl Sync for WebSearchResultCard
impl Unpin for WebSearchResultCard
impl UnwindSafe for WebSearchResultCard
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