Struct snekdown::utils::image_converting::PendingImage[][src]

pub struct PendingImage {
    pub path: PathBuf,
    pub data: Option<Vec<u8>>,
    pub mime: Mime,
    // some fields omitted
}

Fields

path: PathBufdata: Option<Vec<u8>>mime: Mime

Implementations

impl PendingImage[src]

pub fn new(path: PathBuf) -> Self[src]

pub fn assign_from_meta<M: Metadata>(&mut self, meta: &M)[src]

pub fn convert(
    &mut self,
    target_format: Option<ImageFormat>,
    target_size: Option<(u32, u32)>
) -> ImageResult<()>
[src]

Converts the image to the specified target format (specified by target_extension)

Trait Implementations

impl Clone for PendingImage[src]

impl Debug for PendingImage[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,