pub struct ImageRequest { /* private fields */ }Expand description
An image request to notify the API of the parameters of the image to create
Implementations§
Source§impl ImageRequest
impl ImageRequest
pub fn new(prompt: String) -> Self
pub fn update_negative_prompt(self, prompt: String) -> Self
pub fn update_steps(self, steps: ImageSteps) -> Self
pub fn update_model(self, model: ImageModel) -> Self
pub fn update_size(self, size: ImageSize) -> Self
pub fn update_orientation(self, orientation: ImageOrientation) -> Self
Trait Implementations§
Source§impl Debug for ImageRequest
impl Debug for ImageRequest
Auto Trait Implementations§
impl Freeze for ImageRequest
impl RefUnwindSafe for ImageRequest
impl Send for ImageRequest
impl Sync for ImageRequest
impl Unpin for ImageRequest
impl UnwindSafe for ImageRequest
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