pub struct SyncImageGenerationBuilder { /* private fields */ }Expand description
Blocking wrapper for ImageGenerationBuilder.
Implementations§
Source§impl SyncImageGenerationBuilder
impl SyncImageGenerationBuilder
Sourcepub fn response_format(self, format: ImageResponseFormat) -> Self
pub fn response_format(self, format: ImageResponseFormat) -> Self
Set response format.
Sourcepub fn url_format(self) -> Self
pub fn url_format(self) -> Self
Request URL format.
Sourcepub fn base64_format(self) -> Self
pub fn base64_format(self) -> Self
Request base64 format.
Sourcepub fn send(self) -> Result<ImageGenerationResponse>
pub fn send(self) -> Result<ImageGenerationResponse>
Send the request and return generated images.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SyncImageGenerationBuilder
impl !RefUnwindSafe for SyncImageGenerationBuilder
impl Send for SyncImageGenerationBuilder
impl Sync for SyncImageGenerationBuilder
impl Unpin for SyncImageGenerationBuilder
impl UnsafeUnpin for SyncImageGenerationBuilder
impl !UnwindSafe for SyncImageGenerationBuilder
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