pub struct Convert {
pub type: Vec<Type>,
}
Expand description
§Converting images
You can use the API to convert your images to your desired image type. Tinify currently supports converting between WebP
, JPEG
, and PNG
. When you provide more than one image type
in your convert request, the smallest version will be returned to you.
Image converting will count as one additional compression.
Fields§
§type: Vec<Type>
A vector of types
Trait Implementations§
source§impl<'de> Deserialize<'de> for Convert
impl<'de> Deserialize<'de> for Convert
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Convert
impl RefUnwindSafe for Convert
impl Send for Convert
impl Sync for Convert
impl Unpin for Convert
impl UnwindSafe for Convert
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