pub struct RedactSearchOptions {
pub case_sensitive: bool,
pub regex: bool,
pub fill_color: [f64; 3],
pub pages: Option<Vec<u32>>,
pub overlay_text: Option<String>,
}Expand description
Options for search-and-redact operations.
Fields§
§case_sensitive: boolWhether the search is case-sensitive (default: true).
regex: boolWhether the pattern is a regex (default: false).
fill_color: [f64; 3]Fill color [r, g, b] for redaction overlay (default: black).
pages: Option<Vec<u32>>Specific pages to search (None = all pages).
overlay_text: Option<String>Optional overlay text (e.g., “[REDACTED]”).
Implementations§
Source§impl RedactSearchOptions
impl RedactSearchOptions
Sourcepub fn case_insensitive() -> Self
pub fn case_insensitive() -> Self
Create options for a case-insensitive search.
Sourcepub fn with_regex() -> Self
pub fn with_regex() -> Self
Create options for a regex search.
Sourcepub fn fill_color(self, r: f64, g: f64, b: f64) -> Self
pub fn fill_color(self, r: f64, g: f64, b: f64) -> Self
Set fill color.
Sourcepub fn overlay_text(self, text: impl Into<String>) -> Self
pub fn overlay_text(self, text: impl Into<String>) -> Self
Set overlay text.
Trait Implementations§
Source§impl Clone for RedactSearchOptions
impl Clone for RedactSearchOptions
Source§fn clone(&self) -> RedactSearchOptions
fn clone(&self) -> RedactSearchOptions
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 RedactSearchOptions
impl Debug for RedactSearchOptions
Auto Trait Implementations§
impl Freeze for RedactSearchOptions
impl RefUnwindSafe for RedactSearchOptions
impl Send for RedactSearchOptions
impl Sync for RedactSearchOptions
impl Unpin for RedactSearchOptions
impl UnsafeUnpin for RedactSearchOptions
impl UnwindSafe for RedactSearchOptions
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().