pub struct UrlCitation {
pub start_index: usize,
pub end_index: usize,
pub title: String,
pub url: String,
}Expand description
A URL citation when the model uses a web search tool.
Fields§
§start_index: usizeThe index of the first character of the URL citation in the message.
end_index: usizeThe index of the last character of the URL citation in the message.
title: StringThe title of the web resource.
url: StringThe URL of the web resource.
Trait Implementations§
Source§impl Clone for UrlCitation
impl Clone for UrlCitation
Source§fn clone(&self) -> UrlCitation
fn clone(&self) -> UrlCitation
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 UrlCitation
impl Debug for UrlCitation
Source§impl<'de> Deserialize<'de> for UrlCitation
impl<'de> Deserialize<'de> for UrlCitation
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
Auto Trait Implementations§
impl Freeze for UrlCitation
impl RefUnwindSafe for UrlCitation
impl Send for UrlCitation
impl Sync for UrlCitation
impl Unpin for UrlCitation
impl UnsafeUnpin for UrlCitation
impl UnwindSafe for UrlCitation
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