pub struct FetchOutput {
pub id: String,
pub title: String,
pub text: String,
pub url: String,
pub metadata: Option<BTreeMap<String, Value>>,
}Expand description
The structured result returned by fetch.
Fields§
§id: StringWorkspace-relative file ID.
title: StringHuman-readable document title.
text: StringUTF-8 file contents.
url: StringCitation URL, or an empty string when no prefix is configured.
metadata: Option<BTreeMap<String, Value>>Optional provider-defined metadata. VT Code currently has none.
Trait Implementations§
Source§impl Clone for FetchOutput
impl Clone for FetchOutput
Source§fn clone(&self) -> FetchOutput
fn clone(&self) -> FetchOutput
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 FetchOutput
impl Debug for FetchOutput
Source§impl JsonSchema for FetchOutput
impl JsonSchema for FetchOutput
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 FetchOutput
impl PartialEq for FetchOutput
Source§impl Serialize for FetchOutput
impl Serialize for FetchOutput
impl StructuralPartialEq for FetchOutput
Auto Trait Implementations§
impl Freeze for FetchOutput
impl RefUnwindSafe for FetchOutput
impl Send for FetchOutput
impl Sync for FetchOutput
impl Unpin for FetchOutput
impl UnsafeUnpin for FetchOutput
impl UnwindSafe for FetchOutput
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