Enum rustla::doctree::directives::ImageDirective[][src]

pub enum ImageDirective {
    Image {
        uri: String,
        alt: Option<String>,
        height: Option<String>,
        width: Option<String>,
        scale: Option<String>,
        align: Option<String>,
        target: Option<String>,
        name: Option<String>,
        class: Option<String>,
    },
    Figure {
        uri: String,
        name: Option<String>,
        class: Option<String>,
        alt: Option<String>,
        height: Option<String>,
        width: Option<String>,
        scale: Option<String>,
        align: Option<String>,
        target: Option<String>,
        figwidth: Option<FigWidth>,
        figclass: Option<String>,
    },
}

An enumeration of different image types. There are two image directives: image and figure.

Details: https://docutils.sourceforge.io/docs/ref/rst/directives.html#images

Variants

Image

Image

An “image” is a simple picture.

Details: https://docutils.sourceforge.io/docs/ref/rst/directives.html#image

Fields of Image

uri: String

uri

A compulsory image location.

alt: Option<String>height: Option<String>width: Option<String>scale: Option<String>align: Option<String>target: Option<String>name: Option<String>class: Option<String>
Figure

A “figure” consists of image data (including image options), an optional caption (a single paragraph), and an optional legend (arbitrary body elements). For page-based output media, figures might float to a different position if this helps the page layout.

Details: https://docutils.sourceforge.io/docs/ref/rst/directives.html#figure

Fields of Figure

uri: String

uri

A compulsory image location.

name: Option<String>class: Option<String>alt: Option<String>height: Option<String>width: Option<String>scale: Option<String>align: Option<String>target: Option<String>figwidth: Option<FigWidth>figclass: Option<String>

Trait Implementations

impl Debug for ImageDirective[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, 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.