#[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 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> 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>
Creates a shared type from an unshared type.