pub struct CitationsDelta {
pub citation: Citation,
}Available on crate feature
anthropic-client only.Expand description
A delta representing a new citation in a streaming response
Fields§
§citation: CitationThe citation that was added
Implementations§
Source§impl CitationsDelta
impl CitationsDelta
Sourcepub fn with_char_location(location: CitationCharLocation) -> CitationsDelta
pub fn with_char_location(location: CitationCharLocation) -> CitationsDelta
Creates a new CitationsDelta with a CitationCharLocation
Sourcepub fn with_page_location(location: CitationPageLocation) -> CitationsDelta
pub fn with_page_location(location: CitationPageLocation) -> CitationsDelta
Creates a new CitationsDelta with a CitationPageLocation
Sourcepub fn with_content_block_location(
location: CitationContentBlockLocation,
) -> CitationsDelta
pub fn with_content_block_location( location: CitationContentBlockLocation, ) -> CitationsDelta
Creates a new CitationsDelta with a CitationContentBlockLocation
Sourcepub fn with_web_search_result_location(
location: CitationWebSearchResultLocation,
) -> CitationsDelta
pub fn with_web_search_result_location( location: CitationWebSearchResultLocation, ) -> CitationsDelta
Creates a new CitationsDelta with a CitationWebSearchResultLocation
Trait Implementations§
Source§impl Clone for CitationsDelta
impl Clone for CitationsDelta
Source§fn clone(&self) -> CitationsDelta
fn clone(&self) -> CitationsDelta
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 CitationsDelta
impl Debug for CitationsDelta
Source§impl<'de> Deserialize<'de> for CitationsDelta
impl<'de> Deserialize<'de> for CitationsDelta
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CitationsDelta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CitationsDelta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CitationsDelta
impl PartialEq for CitationsDelta
Source§impl Serialize for CitationsDelta
impl Serialize for CitationsDelta
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CitationsDelta
Auto Trait Implementations§
impl Freeze for CitationsDelta
impl RefUnwindSafe for CitationsDelta
impl Send for CitationsDelta
impl Sync for CitationsDelta
impl Unpin for CitationsDelta
impl UnsafeUnpin for CitationsDelta
impl UnwindSafe for CitationsDelta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestCreates a shared type from an unshared type.