pub struct SaferRemoveOptions<'a> {
pub must_contain_any: Option<&'a [&'a str]>,
pub must_contain_all: Option<&'a [&'a str]>,
pub restrict_to_current_dir: bool,
}Fields§
§must_contain_any: Option<&'a [&'a str]>§must_contain_all: Option<&'a [&'a str]>§restrict_to_current_dir: boolImplementations§
Source§impl<'a> SaferRemoveOptions<'a>
impl<'a> SaferRemoveOptions<'a>
pub fn with_must_contain_any(self, patterns: &'a [&'a str]) -> Self
pub fn with_must_contain_all(self, patterns: &'a [&'a str]) -> Self
pub fn with_restrict_to_current_dir(self, val: bool) -> Self
Trait Implementations§
Source§impl<'a> Clone for SaferRemoveOptions<'a>
impl<'a> Clone for SaferRemoveOptions<'a>
Source§fn clone(&self) -> SaferRemoveOptions<'a>
fn clone(&self) -> SaferRemoveOptions<'a>
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<'a> Debug for SaferRemoveOptions<'a>
impl<'a> Debug for SaferRemoveOptions<'a>
Source§impl Default for SaferRemoveOptions<'_>
impl Default for SaferRemoveOptions<'_>
Source§impl<'a> From<&'a [&'a str]> for SaferRemoveOptions<'a>
impl<'a> From<&'a [&'a str]> for SaferRemoveOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for SaferRemoveOptions<'a>
impl<'a> RefUnwindSafe for SaferRemoveOptions<'a>
impl<'a> Send for SaferRemoveOptions<'a>
impl<'a> Sync for SaferRemoveOptions<'a>
impl<'a> Unpin for SaferRemoveOptions<'a>
impl<'a> UnwindSafe for SaferRemoveOptions<'a>
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