#[non_exhaustive]pub struct GenerativeReferenceBuilder { /* private fields */ }Expand description
A builder for GenerativeReference.
Implementations§
source§impl GenerativeReferenceBuilder
impl GenerativeReferenceBuilder
sourcepub fn set_model_id(self, input: Option<String>) -> Self
pub fn set_model_id(self, input: Option<String>) -> Self
The identifier of the LLM model.
sourcepub fn get_model_id(&self) -> &Option<String>
pub fn get_model_id(&self) -> &Option<String>
The identifier of the LLM model.
sourcepub fn generation_id(self, input: impl Into<String>) -> Self
pub fn generation_id(self, input: impl Into<String>) -> Self
The identifier of the LLM model.
sourcepub fn set_generation_id(self, input: Option<String>) -> Self
pub fn set_generation_id(self, input: Option<String>) -> Self
The identifier of the LLM model.
sourcepub fn get_generation_id(&self) -> &Option<String>
pub fn get_generation_id(&self) -> &Option<String>
The identifier of the LLM model.
sourcepub fn build(self) -> GenerativeReference
pub fn build(self) -> GenerativeReference
Consumes the builder and constructs a GenerativeReference.
Trait Implementations§
source§impl Clone for GenerativeReferenceBuilder
impl Clone for GenerativeReferenceBuilder
source§fn clone(&self) -> GenerativeReferenceBuilder
fn clone(&self) -> GenerativeReferenceBuilder
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 GenerativeReferenceBuilder
impl Debug for GenerativeReferenceBuilder
source§impl Default for GenerativeReferenceBuilder
impl Default for GenerativeReferenceBuilder
source§fn default() -> GenerativeReferenceBuilder
fn default() -> GenerativeReferenceBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for GenerativeReferenceBuilder
impl PartialEq for GenerativeReferenceBuilder
source§fn eq(&self, other: &GenerativeReferenceBuilder) -> bool
fn eq(&self, other: &GenerativeReferenceBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GenerativeReferenceBuilder
Auto Trait Implementations§
impl RefUnwindSafe for GenerativeReferenceBuilder
impl Send for GenerativeReferenceBuilder
impl Sync for GenerativeReferenceBuilder
impl Unpin for GenerativeReferenceBuilder
impl UnwindSafe for GenerativeReferenceBuilder
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.