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: AlignHorizontalHow the image should be aligned horizontally.
hyperlink: StringA 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§
Source§impl StyleImage
impl StyleImage
pub fn new() -> Self
pub fn with_align_h(self, align_h: AlignHorizontal) -> Self
pub fn with_height(self, height: f32) -> Self
pub fn with_hyperlink(self, hyperlink: String) -> Self
pub fn with_width(self, width: f32) -> Self
Trait Implementations§
Source§impl Debug for StyleImage
impl Debug for StyleImage
Auto Trait Implementations§
impl Freeze for StyleImage
impl RefUnwindSafe for StyleImage
impl Send for StyleImage
impl Sync for StyleImage
impl Unpin for StyleImage
impl UnsafeUnpin for StyleImage
impl UnwindSafe for StyleImage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more