#[non_exhaustive]pub struct GenerativeDataDetailsBuilder { /* private fields */ }Expand description
A builder for GenerativeDataDetails.
Implementations§
source§impl GenerativeDataDetailsBuilder
impl GenerativeDataDetailsBuilder
sourcepub fn completion(self, input: impl Into<String>) -> Self
pub fn completion(self, input: impl Into<String>) -> Self
The LLM response.
This field is required.sourcepub fn set_completion(self, input: Option<String>) -> Self
pub fn set_completion(self, input: Option<String>) -> Self
The LLM response.
sourcepub fn get_completion(&self) -> &Option<String>
pub fn get_completion(&self) -> &Option<String>
The LLM response.
sourcepub fn references(self, input: DataSummary) -> Self
pub fn references(self, input: DataSummary) -> Self
Appends an item to references.
To override the contents of this collection use set_references.
The references used to generative the LLM response.
sourcepub fn set_references(self, input: Option<Vec<DataSummary>>) -> Self
pub fn set_references(self, input: Option<Vec<DataSummary>>) -> Self
The references used to generative the LLM response.
sourcepub fn get_references(&self) -> &Option<Vec<DataSummary>>
pub fn get_references(&self) -> &Option<Vec<DataSummary>>
The references used to generative the LLM response.
sourcepub fn ranking_data(self, input: RankingData) -> Self
pub fn ranking_data(self, input: RankingData) -> Self
Details about the generative content ranking data.
This field is required.sourcepub fn set_ranking_data(self, input: Option<RankingData>) -> Self
pub fn set_ranking_data(self, input: Option<RankingData>) -> Self
Details about the generative content ranking data.
sourcepub fn get_ranking_data(&self) -> &Option<RankingData>
pub fn get_ranking_data(&self) -> &Option<RankingData>
Details about the generative content ranking data.
sourcepub fn build(self) -> Result<GenerativeDataDetails, BuildError>
pub fn build(self) -> Result<GenerativeDataDetails, BuildError>
Consumes the builder and constructs a GenerativeDataDetails.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GenerativeDataDetailsBuilder
impl Clone for GenerativeDataDetailsBuilder
source§fn clone(&self) -> GenerativeDataDetailsBuilder
fn clone(&self) -> GenerativeDataDetailsBuilder
Returns a copy 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 GenerativeDataDetailsBuilder
impl Debug for GenerativeDataDetailsBuilder
source§impl Default for GenerativeDataDetailsBuilder
impl Default for GenerativeDataDetailsBuilder
source§fn default() -> GenerativeDataDetailsBuilder
fn default() -> GenerativeDataDetailsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for GenerativeDataDetailsBuilder
impl PartialEq for GenerativeDataDetailsBuilder
source§fn eq(&self, other: &GenerativeDataDetailsBuilder) -> bool
fn eq(&self, other: &GenerativeDataDetailsBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GenerativeDataDetailsBuilder
Auto Trait Implementations§
impl Freeze for GenerativeDataDetailsBuilder
impl RefUnwindSafe for GenerativeDataDetailsBuilder
impl Send for GenerativeDataDetailsBuilder
impl Sync for GenerativeDataDetailsBuilder
impl Unpin for GenerativeDataDetailsBuilder
impl UnwindSafe for GenerativeDataDetailsBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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 moreCreates a shared type from an unshared type.