pub struct Image {
pub src: String,
pub object_fit: ObjectFit,
pub style: Style,
pub break_before: BreakType,
pub fixed: bool,
pub wrap: Option<bool>,
pub min_presence_ahead: f32,
}Expand description
Raster image node.
Fields§
§src: StringSource URL or file path
object_fit: ObjectFitObject fit mode
style: StyleStyle (width, height, borders, etc.)
break_before: BreakTypeWhether to break before this element
fixed: boolWhether this element is rendered on all pages (react-pdf fixed)
wrap: Option<bool>Whether this element can be split between pages (ignored for images; always false)
min_presence_ahead: f32Desired minimum remaining presence (in points) after this element.
Implementations§
Trait Implementations§
Source§impl From<ImageBuilder> for Image
impl From<ImageBuilder> for Image
Source§fn from(value: ImageBuilder) -> Self
fn from(value: ImageBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
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