pub struct RealESRGANUpscaleRequestBody {
pub image: InputImage,
pub height: Option<u16>,
pub width: Option<u16>,
}Fields§
§image: InputImage§height: Option<u16>Desired height of the output image.
Only one of width or height may be specified.
width: Option<u16>Desired width of the output image.
Only one of width or height may be specified.
Trait Implementations§
Source§impl Clone for RealESRGANUpscaleRequestBody
impl Clone for RealESRGANUpscaleRequestBody
Source§fn clone(&self) -> RealESRGANUpscaleRequestBody
fn clone(&self) -> RealESRGANUpscaleRequestBody
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 RealESRGANUpscaleRequestBody
impl Debug for RealESRGANUpscaleRequestBody
Source§impl Default for RealESRGANUpscaleRequestBody
impl Default for RealESRGANUpscaleRequestBody
Source§fn default() -> RealESRGANUpscaleRequestBody
fn default() -> RealESRGANUpscaleRequestBody
Returns the “default value” for a type. Read more
Source§impl From<RealESRGANUpscaleRequestBody> for ImageToImageUpscaleBody
impl From<RealESRGANUpscaleRequestBody> for ImageToImageUpscaleBody
Source§fn from(value: RealESRGANUpscaleRequestBody) -> Self
fn from(value: RealESRGANUpscaleRequestBody) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RealESRGANUpscaleRequestBody
impl PartialEq for RealESRGANUpscaleRequestBody
Source§fn eq(&self, other: &RealESRGANUpscaleRequestBody) -> bool
fn eq(&self, other: &RealESRGANUpscaleRequestBody) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<RealESRGANUpscaleRequestBody> for Form
impl TryFrom<RealESRGANUpscaleRequestBody> for Form
impl StructuralPartialEq for RealESRGANUpscaleRequestBody
Auto Trait Implementations§
impl Freeze for RealESRGANUpscaleRequestBody
impl RefUnwindSafe for RealESRGANUpscaleRequestBody
impl Send for RealESRGANUpscaleRequestBody
impl Sync for RealESRGANUpscaleRequestBody
impl Unpin for RealESRGANUpscaleRequestBody
impl UnwindSafe for RealESRGANUpscaleRequestBody
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