pub struct RedactionRegion {
pub page: usize,
pub x: f64,
pub y: f64,
pub width: f64,
pub height: f64,
pub color: Option<String>,
}Expand description
A rectangular region to redact in an existing PDF.
Fields§
§page: usize0-indexed page number.
x: f64X coordinate in points from the left edge of the page.
y: f64Y coordinate in points from the top edge (web/screen coordinates). The engine converts to PDF bottom-origin internally — do NOT flip before calling.
width: f64Width of the redaction rectangle in points.
height: f64Height of the redaction rectangle in points.
color: Option<String>Fill color as hex string (e.g. “#000000”). Defaults to black.
Trait Implementations§
Source§impl Clone for RedactionRegion
impl Clone for RedactionRegion
Source§fn clone(&self) -> RedactionRegion
fn clone(&self) -> RedactionRegion
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 RedactionRegion
impl Debug for RedactionRegion
Source§impl<'de> Deserialize<'de> for RedactionRegion
impl<'de> Deserialize<'de> for RedactionRegion
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 Freeze for RedactionRegion
impl RefUnwindSafe for RedactionRegion
impl Send for RedactionRegion
impl Sync for RedactionRegion
impl Unpin for RedactionRegion
impl UnsafeUnpin for RedactionRegion
impl UnwindSafe for RedactionRegion
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