pub enum WatermarkContent {
Text(String),
ImageFile(String),
RawRgba {
width: u32,
height: u32,
data: Vec<u8>,
},
}Expand description
Kind of watermark content.
Variants§
Text(String)
A text string to render.
ImageFile(String)
A path to an image file (PNG, etc.).
RawRgba
Raw RGBA pixel data with width and height.
Trait Implementations§
Source§impl Clone for WatermarkContent
impl Clone for WatermarkContent
Source§fn clone(&self) -> WatermarkContent
fn clone(&self) -> WatermarkContent
Returns a duplicate 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 WatermarkContent
impl Debug for WatermarkContent
Source§impl PartialEq for WatermarkContent
impl PartialEq for WatermarkContent
impl StructuralPartialEq for WatermarkContent
Auto Trait Implementations§
impl Freeze for WatermarkContent
impl RefUnwindSafe for WatermarkContent
impl Send for WatermarkContent
impl Sync for WatermarkContent
impl Unpin for WatermarkContent
impl UnsafeUnpin for WatermarkContent
impl UnwindSafe for WatermarkContent
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more