pub struct GenerationParamBuilder { /* private fields */ }
Expand description
Builder for GenerationParam
.
Implementations§
Source§impl GenerationParamBuilder
impl GenerationParamBuilder
pub fn model<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn input(&mut self, value: Input) -> &mut Self
pub fn parameters<VALUE: Into<Parameters>>(&mut self, value: VALUE) -> &mut Self
pub fn stream<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn stream_options<VALUE: Into<StreamOptions>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(&self) -> Result<GenerationParam, GenerationParamBuilderError>
pub fn build(&self) -> Result<GenerationParam, GenerationParamBuilderError>
Trait Implementations§
Source§impl Clone for GenerationParamBuilder
impl Clone for GenerationParamBuilder
Source§fn clone(&self) -> GenerationParamBuilder
fn clone(&self) -> GenerationParamBuilder
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 moreAuto Trait Implementations§
impl Freeze for GenerationParamBuilder
impl RefUnwindSafe for GenerationParamBuilder
impl Send for GenerationParamBuilder
impl Sync for GenerationParamBuilder
impl Unpin for GenerationParamBuilder
impl UnwindSafe for GenerationParamBuilder
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