pub enum Size {
Original,
Thumbnail(u32),
}Expand description
Which image to take, of the ones the archive offers.
Variants§
Original
The file as it was uploaded: often 1500–3000 px and several megabytes.
Thumbnail(u32)
A thumbnail of this width, when the archive has generated one.
Implementations§
Source§impl Size
impl Size
Sourcepub fn parse(text: &str) -> Option<Size>
pub fn parse(text: &str) -> Option<Size>
Reads what a reader typed after --size.
Only the widths the archive actually generates are accepted. A number it has never heard of would be asked for, not found, and silently fall back to something else — so it is refused here, where the message can list what there is.
Trait Implementations§
impl Copy for Size
impl Eq for Size
impl StructuralPartialEq for Size
Auto Trait Implementations§
impl Freeze for Size
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnwindSafe for Size
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