pub struct UrlCitationBody {
pub type: String,
pub url: String,
pub start_index: i64,
pub end_index: i64,
pub title: String,
}
Expand description
A citation for a web resource used to generate a model response.
Fields§
§type: String
The type of the URL citation.
url: String
The URL of the web resource.
start_index: i64
The index of the first character of the URL citation in the message.
end_index: i64
The index of the last character of the URL citation in the message.
title: String
The title of the web resource.
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 Default for UrlCitationBody
impl Default for UrlCitationBody
Source§fn default() -> UrlCitationBody
fn default() -> UrlCitationBody
Returns the “default value” for a type. Read more
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