pub struct RedactionPattern {
pub pattern: String,
pub pattern_type: PatternType,
pub page: Option<usize>,
pub color: Option<String>,
}Expand description
A text pattern to search for in a PDF for redaction.
Fields§
§pattern: StringThe search string (literal text or regex pattern).
pattern_type: PatternTypeWhether to interpret pattern as literal text or a regex.
page: Option<usize>Restrict search to a specific page (0-indexed). None = all pages.
color: Option<String>Fill color for the redaction overlay. Defaults to black.
Trait Implementations§
Source§impl Clone for RedactionPattern
impl Clone for RedactionPattern
Source§fn clone(&self) -> RedactionPattern
fn clone(&self) -> RedactionPattern
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 RedactionPattern
impl Debug for RedactionPattern
Source§impl<'de> Deserialize<'de> for RedactionPattern
impl<'de> Deserialize<'de> for RedactionPattern
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 RedactionPattern
impl RefUnwindSafe for RedactionPattern
impl Send for RedactionPattern
impl Sync for RedactionPattern
impl Unpin for RedactionPattern
impl UnsafeUnpin for RedactionPattern
impl UnwindSafe for RedactionPattern
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