pub struct WatermarkTask { /* private fields */ }Implementations§
Source§impl WatermarkTask
impl WatermarkTask
pub fn text(input: impl Into<Input>, text: impl Into<String>) -> Self
pub fn image( input: impl Into<Input>, image_task_name: impl Into<String>, ) -> Self
pub fn input_format(self, input_format: impl Into<String>) -> Self
pub fn pages(self, pages: impl Into<String>) -> Self
pub fn layer(self, layer: Layer) -> Self
pub fn font_size(self, font_size: u32) -> Self
pub fn font_width_percent(self, font_width_percent: u8) -> Self
pub fn font_color(self, font_color: impl Into<String>) -> Self
pub fn font_name(self, font_name: impl Into<String>) -> Self
pub fn font_align_left(self) -> Self
pub fn font_align_center(self) -> Self
pub fn font_align_right(self) -> Self
pub fn position( self, vertical: PositionVertical, horizontal: PositionHorizontal, ) -> Self
pub fn margins(self, vertical: u32, horizontal: u32) -> Self
pub fn opacity(self, opacity: u8) -> Self
pub fn rotation(self, rotation: i16) -> Self
pub fn image_width(self, image_width: u32) -> Self
pub fn image_height(self, image_height: u32) -> Self
pub fn image_width_percent(self, image_width_percent: u8) -> Self
pub fn filename(self, filename: impl Into<String>) -> Self
pub fn engine(self, engine: impl Into<String>) -> Self
pub fn engine_version(self, engine_version: impl Into<String>) -> Self
pub fn timeout(self, timeout: u64) -> Self
pub fn option(self, key: impl Into<String>, value: impl Into<Value>) -> Self
Trait Implementations§
Source§impl Clone for WatermarkTask
impl Clone for WatermarkTask
Source§fn clone(&self) -> WatermarkTask
fn clone(&self) -> WatermarkTask
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WatermarkTask
impl Debug for WatermarkTask
Source§impl From<WatermarkTask> for TaskRequest
impl From<WatermarkTask> for TaskRequest
Source§fn from(value: WatermarkTask) -> Self
fn from(value: WatermarkTask) -> Self
Converts to this type from the input type.
Source§impl Serialize for WatermarkTask
impl Serialize for WatermarkTask
Source§impl TaskPayload for WatermarkTask
impl TaskPayload for WatermarkTask
Auto Trait Implementations§
impl Freeze for WatermarkTask
impl RefUnwindSafe for WatermarkTask
impl Send for WatermarkTask
impl Sync for WatermarkTask
impl Unpin for WatermarkTask
impl UnsafeUnpin for WatermarkTask
impl UnwindSafe for WatermarkTask
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