pub struct UrlCitationBody {
pub url: String,
pub start_index: u64,
pub end_index: u64,
pub title: String,
}
Expand description
A citation for a web resource used to generate a model response.
Fields§
§url: String
The URL of the web resource.
start_index: u64
The index of the first character of the URL citation in the message.
end_index: u64
The index of the last character of the URL citation in the message.
title: String
The title of the web resource.
Implementations§
Trait Implementations§
Source§impl Clone for UrlCitationBody
impl Clone for UrlCitationBody
Source§fn clone(&self) -> UrlCitationBody
fn clone(&self) -> UrlCitationBody
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 UrlCitationBody
impl Debug for UrlCitationBody
Source§impl<'de> Deserialize<'de> for UrlCitationBody
impl<'de> Deserialize<'de> for UrlCitationBody
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 UrlCitationBody
impl PartialEq for UrlCitationBody
Source§impl Serialize for UrlCitationBody
impl Serialize for UrlCitationBody
impl StructuralPartialEq for UrlCitationBody
Auto Trait Implementations§
impl Freeze for UrlCitationBody
impl RefUnwindSafe for UrlCitationBody
impl Send for UrlCitationBody
impl Sync for UrlCitationBody
impl Unpin for UrlCitationBody
impl UnwindSafe for UrlCitationBody
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