pub enum WatermarkKind {
Image(WatermarkImage),
Text(WatermarkText),
}Variants§
Image(WatermarkImage)
A static image stretched to the configured size and anchored to a page-relative position (top-left origin, in PDF points).
Text(WatermarkText)
Diagonal text overlay across the page centre. Rotation in
degrees, anti-clockwise; e.g. -30.0 slants from bottom-left
to top-right.
Trait Implementations§
Source§impl Clone for WatermarkKind
impl Clone for WatermarkKind
Source§impl Debug for WatermarkKind
impl Debug for WatermarkKind
Source§impl<'de> Deserialize<'de> for WatermarkKind
impl<'de> Deserialize<'de> for WatermarkKind
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
Auto Trait Implementations§
impl Forget for WatermarkKind
impl Freeze for WatermarkKind
impl Move for WatermarkKind
impl RefUnwindSafe for WatermarkKind
impl Send for WatermarkKind
impl Sync for WatermarkKind
impl Unpin for WatermarkKind
impl UnsafeUnpin for WatermarkKind
impl UnwindSafe for WatermarkKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.