pub struct WebReaderResponse {
pub title: String,
pub description: String,
pub url: String,
pub content: String,
pub images: BTreeMap<String, String>,
pub metadata: BTreeMap<String, Value>,
pub external: BTreeMap<String, Value>,
pub extra: BTreeMap<String, Value>,
}Available on crate feature
mcp only.Expand description
Typed response from webReader.
Fields§
§title: StringPage title, or an empty string when the upstream response omits it.
description: StringPage description, or an empty string when unavailable.
url: StringCanonical or requested page URL reported by the reader.
content: StringExtracted page content in the requested format.
images: BTreeMap<String, String>Image labels mapped to their source URLs.
metadata: BTreeMap<String, Value>Reader metadata whose shape is controlled by the upstream service.
external: BTreeMap<String, Value>Additional externally sourced reader data.
extra: BTreeMap<String, Value>Unknown top-level fields retained for forward compatibility.
Trait Implementations§
Source§impl Clone for WebReaderResponse
impl Clone for WebReaderResponse
Source§fn clone(&self) -> WebReaderResponse
fn clone(&self) -> WebReaderResponse
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 moreSource§impl Debug for WebReaderResponse
impl Debug for WebReaderResponse
Source§impl<'de> Deserialize<'de> for WebReaderResponse
impl<'de> Deserialize<'de> for WebReaderResponse
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
Source§impl PartialEq for WebReaderResponse
impl PartialEq for WebReaderResponse
Source§impl Serialize for WebReaderResponse
impl Serialize for WebReaderResponse
impl StructuralPartialEq for WebReaderResponse
Auto Trait Implementations§
impl Freeze for WebReaderResponse
impl RefUnwindSafe for WebReaderResponse
impl Send for WebReaderResponse
impl Sync for WebReaderResponse
impl Unpin for WebReaderResponse
impl UnsafeUnpin for WebReaderResponse
impl UnwindSafe for WebReaderResponse
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