pub struct RedactionArea {
pub page: u32,
pub rect: [f64; 4],
pub fill_color: [f64; 3],
pub overlay_text: Option<String>,
}Expand description
A rectangular area on a page to be redacted.
Fields§
§page: u32The page number (1-based).
rect: [f64; 4]The rectangle [x0, y0, x1, y1] in PDF coordinates.
fill_color: [f64; 3]Fill color [r, g, b] for the redaction overlay (default: black).
overlay_text: Option<String>Optional overlay text to display on the redacted area.
Implementations§
Trait Implementations§
Source§impl Clone for RedactionArea
impl Clone for RedactionArea
Auto Trait Implementations§
impl Freeze for RedactionArea
impl RefUnwindSafe for RedactionArea
impl Send for RedactionArea
impl Sync for RedactionArea
impl Unpin for RedactionArea
impl UnsafeUnpin for RedactionArea
impl UnwindSafe for RedactionArea
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