pub struct SaferTrashOptions<'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> SaferTrashOptions<'a>
impl<'a> SaferTrashOptions<'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 SaferTrashOptions<'a>
impl<'a> Clone for SaferTrashOptions<'a>
Source§fn clone(&self) -> SaferTrashOptions<'a>
fn clone(&self) -> SaferTrashOptions<'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 SaferTrashOptions<'a>
impl<'a> Debug for SaferTrashOptions<'a>
Source§impl Default for SaferTrashOptions<'_>
impl Default for SaferTrashOptions<'_>
Source§impl<'a> From<&'a [&'a str]> for SaferTrashOptions<'a>
impl<'a> From<&'a [&'a str]> for SaferTrashOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for SaferTrashOptions<'a>
impl<'a> RefUnwindSafe for SaferTrashOptions<'a>
impl<'a> Send for SaferTrashOptions<'a>
impl<'a> Sync for SaferTrashOptions<'a>
impl<'a> Unpin for SaferTrashOptions<'a>
impl<'a> UnwindSafe for SaferTrashOptions<'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