Type Alias ImageInline

Source
pub type ImageInline = Image;

Aliased Type§

struct ImageInline {
    pub uri: Url,
    pub align: Option<AlignHV>,
    pub alt: Option<String>,
    pub height: Option<Measure>,
    pub width: Option<Measure>,
    pub scale: Option<u8>,
    pub target: Option<Url>,
}

Fields§

§uri: Url§align: Option<AlignHV>§alt: Option<String>§height: Option<Measure>§width: Option<Measure>§scale: Option<u8>§target: Option<Url>

Implementations

Source§

impl Image

Source

pub fn new(uri: Url) -> Image

Trait Implementations

Source§

impl Clone for Image

Source§

fn clone(&self) -> Image

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Image

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Image

Source§

fn eq(&self, other: &Image) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Image

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Image