pub struct Options {
pub parents: bool,
pub mode: mode_t,
pub exist_ok: bool,
pub expand_env: bool,
}
Fields§
§parents: bool
No error if existing, make parent directories as needed.
Just like mkdir -p
command.
mode: mode_t
Set file mode (as in chmod), not a=rwx - umask.
exist_ok: bool
No error if existing.
expand_env: bool
Implementations§
Source§impl Options
impl Options
pub fn with_parents() -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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