pub struct GenerationRequestBuilder { /* private fields */ }
Implementations§
Source§impl GenerationRequestBuilder
impl GenerationRequestBuilder
pub fn with_model(self, model: impl Into<String>) -> Self
pub fn with_prompt(self, prompt: impl Into<String>) -> Self
pub fn with_size(self, width: i32, height: i32) -> Self
pub fn with_n(self, n: i32) -> Self
pub fn with_response_format(self, response_format: GenerationFormat) -> Self
pub fn with_seed(self, seed: i32) -> Self
pub fn with_steps(self, steps: i32) -> Self
pub fn with_cfg_scale(self, cfg_scale: f32) -> Self
pub fn build(self) -> Result<GenerationRequest>
Trait Implementations§
Source§impl Clone for GenerationRequestBuilder
impl Clone for GenerationRequestBuilder
Source§fn clone(&self) -> GenerationRequestBuilder
fn clone(&self) -> GenerationRequestBuilder
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 GenerationRequestBuilder
impl Debug for GenerationRequestBuilder
Source§impl Default for GenerationRequestBuilder
impl Default for GenerationRequestBuilder
Auto Trait Implementations§
impl Freeze for GenerationRequestBuilder
impl RefUnwindSafe for GenerationRequestBuilder
impl Send for GenerationRequestBuilder
impl Sync for GenerationRequestBuilder
impl Unpin for GenerationRequestBuilder
impl UnwindSafe for GenerationRequestBuilder
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