pub struct ChatCompletionResponseMessageAnnotationUrlCitation {
pub end_index: u64,
pub start_index: u64,
pub url: String,
pub title: String,
}
Expand description
A URL citation when using web search.
Fields§
§end_index: u64
The index of the last character of the URL citation in the message.
start_index: u64
The index of the first character of the URL citation in the message.
url: String
The URL of the web resource.
title: String
The title of the web resource.
Implementations§
Source§impl ChatCompletionResponseMessageAnnotationUrlCitation
impl ChatCompletionResponseMessageAnnotationUrlCitation
Sourcepub fn builder() -> ChatCompletionResponseMessageAnnotationUrlCitationBuilder<((), (), (), ())>
pub fn builder() -> ChatCompletionResponseMessageAnnotationUrlCitationBuilder<((), (), (), ())>
Create a builder for building ChatCompletionResponseMessageAnnotationUrlCitation
.
On the builder, call .end_index(...)
, .start_index(...)
, .url(...)
, .title(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ChatCompletionResponseMessageAnnotationUrlCitation
.
Trait Implementations§
Source§impl Clone for ChatCompletionResponseMessageAnnotationUrlCitation
impl Clone for ChatCompletionResponseMessageAnnotationUrlCitation
Source§fn clone(&self) -> ChatCompletionResponseMessageAnnotationUrlCitation
fn clone(&self) -> ChatCompletionResponseMessageAnnotationUrlCitation
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<'de> Deserialize<'de> for ChatCompletionResponseMessageAnnotationUrlCitation
impl<'de> Deserialize<'de> for ChatCompletionResponseMessageAnnotationUrlCitation
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 ChatCompletionResponseMessageAnnotationUrlCitation
impl PartialEq for ChatCompletionResponseMessageAnnotationUrlCitation
Source§fn eq(&self, other: &ChatCompletionResponseMessageAnnotationUrlCitation) -> bool
fn eq(&self, other: &ChatCompletionResponseMessageAnnotationUrlCitation) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ChatCompletionResponseMessageAnnotationUrlCitation
Auto Trait Implementations§
impl Freeze for ChatCompletionResponseMessageAnnotationUrlCitation
impl RefUnwindSafe for ChatCompletionResponseMessageAnnotationUrlCitation
impl Send for ChatCompletionResponseMessageAnnotationUrlCitation
impl Sync for ChatCompletionResponseMessageAnnotationUrlCitation
impl Unpin for ChatCompletionResponseMessageAnnotationUrlCitation
impl UnwindSafe for ChatCompletionResponseMessageAnnotationUrlCitation
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