pub struct LinearDimention { /* private fields */ }Expand description
Linear dimention, allowed units are mm, cm, in, px, pt, pc. Default unit is in.
Example:
use gotenberg_pdf::LinearDimention;
let width: LinearDimention = "11.7in".parse().unwrap();
let height: LinearDimention = "8.27in".parse().unwrap();Implementations§
Trait Implementations§
Source§impl Clone for LinearDimention
impl Clone for LinearDimention
Source§fn clone(&self) -> LinearDimention
fn clone(&self) -> LinearDimention
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LinearDimention
impl Debug for LinearDimention
Source§impl<'de> Deserialize<'de> for LinearDimention
impl<'de> Deserialize<'de> for LinearDimention
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for LinearDimention
impl Display for LinearDimention
Source§impl FromStr for LinearDimention
impl FromStr for LinearDimention
Source§impl PartialEq for LinearDimention
impl PartialEq for LinearDimention
Source§impl Serialize for LinearDimention
impl Serialize for LinearDimention
impl StructuralPartialEq for LinearDimention
Auto Trait Implementations§
impl Freeze for LinearDimention
impl RefUnwindSafe for LinearDimention
impl Send for LinearDimention
impl Sync for LinearDimention
impl Unpin for LinearDimention
impl UnwindSafe for LinearDimention
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