pub struct StyleImage {
    pub align_h: AlignHorizontal,
    pub hyperlink: String,
    pub width: Option<f32>,
    pub height: Option<f32>,
}
Expand description

The configuration of the image element.

Fields

align_h: AlignHorizontal

How the image should be aligned horizontally.

hyperlink: String

A string defines the url where the image should link to.

width: Option<f32>

The width of the image. If None, the ordinary width of the image will be used.

height: Option<f32>

The height of the image. If None, the ordinary height of the image will be used.

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.