[][src]Struct imgflip::MemeTemplate

pub struct MemeTemplate { /* fields omitted */ }

Blank meme template that can be captioned with text boxes

Methods

impl MemeTemplate[src]

pub fn id(&self) -> &str[src]

Returns the identifier of this meme template.

This equals the required template_id input parameter for the /caption_image API endpoint.

pub fn name(&self) -> &str[src]

Returns the name of this meme template.

This is a human readable english string such as "Grumpy Cat".

pub fn url(&self) -> &Url[src]

Returns the URL of the blank image for this meme template.

This is an image with the dimensions given in width and height, without any caption boxes.

pub fn width(&self) -> u32[src]

Returns the width in pixels of the blank image for this meme template.

pub fn height(&self) -> u32[src]

Returns the height in pixels of the blank image for this meme template.

pub fn box_count(&self) -> u32[src]

Returns the number of caption boxes that this meme templates uses.

Some memes have more than just a top and bottom text by default.

Trait Implementations

impl Debug for MemeTemplate[src]

impl<'de> Deserialize<'de> for MemeTemplate[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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

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.