pub struct CreateImageRequestBodyBuilder(/* private fields */);Expand description
Builder for CreateImageRequestBody.
Implementations§
Source§impl CreateImageRequestBodyBuilder
impl CreateImageRequestBodyBuilder
pub fn background(self, value: impl Into<Option<ImageBackground>>) -> Self
pub fn model(self, value: impl Into<Option<String>>) -> Self
pub fn moderation(self, value: impl Into<Option<ImageModeration>>) -> Self
pub fn n(self, value: impl Into<Option<i64>>) -> Self
pub fn output_compression(self, value: impl Into<Option<i64>>) -> Self
pub fn output_format(self, value: impl Into<Option<ImageOutputFormat>>) -> Self
pub fn partial_images(self, value: impl Into<Option<i64>>) -> Self
pub fn quality(self, value: impl Into<Option<ImageQuality>>) -> Self
pub fn response_format( self, value: impl Into<Option<ImageResponseFormat>>, ) -> Self
pub fn size(self, value: impl Into<Option<String>>) -> Self
pub fn stream(self, value: impl Into<Option<bool>>) -> Self
pub fn style(self, value: impl Into<Option<ImageStyle>>) -> Self
pub fn user(self, value: impl Into<String>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> CreateImageRequestBody
pub fn build(self) -> CreateImageRequestBody
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for CreateImageRequestBodyBuilder
impl RefUnwindSafe for CreateImageRequestBodyBuilder
impl Send for CreateImageRequestBodyBuilder
impl Sync for CreateImageRequestBodyBuilder
impl Unpin for CreateImageRequestBodyBuilder
impl UnsafeUnpin for CreateImageRequestBodyBuilder
impl UnwindSafe for CreateImageRequestBodyBuilder
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