Struct distant_protocol::SetPermissionsOptions
source · pub struct SetPermissionsOptions {
pub exclude_symlinks: bool,
pub follow_symlinks: bool,
pub recursive: bool,
}
Fields§
§exclude_symlinks: bool
Whether or not to exclude symlinks from traversal entirely, meaning that permissions will not be set on symlinks (usually resolving the symlink and setting the permission of the referenced file or directory) that are explicitly provided or show up during recursion.
follow_symlinks: bool
Whether or not to traverse symlinks when recursively setting permissions. Note that this does NOT influence setting permissions when encountering a symlink as most platforms will resolve the symlink before setting permissions.
recursive: bool
Whether or not to set the permissions of the file hierarchies rooted in the paths, instead of just the paths themselves.
Trait Implementations§
source§impl Clone for SetPermissionsOptions
impl Clone for SetPermissionsOptions
source§fn clone(&self) -> SetPermissionsOptions
fn clone(&self) -> SetPermissionsOptions
Returns a copy 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 SetPermissionsOptions
impl Debug for SetPermissionsOptions
source§impl Default for SetPermissionsOptions
impl Default for SetPermissionsOptions
source§fn default() -> SetPermissionsOptions
fn default() -> SetPermissionsOptions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SetPermissionsOptionswhere
SetPermissionsOptions: Default,
impl<'de> Deserialize<'de> for SetPermissionsOptionswhere SetPermissionsOptions: Default,
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
source§impl PartialEq<SetPermissionsOptions> for SetPermissionsOptions
impl PartialEq<SetPermissionsOptions> for SetPermissionsOptions
source§fn eq(&self, other: &SetPermissionsOptions) -> bool
fn eq(&self, other: &SetPermissionsOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SetPermissionsOptions
impl Serialize for SetPermissionsOptions
impl Copy for SetPermissionsOptions
impl Eq for SetPermissionsOptions
impl StructuralEq for SetPermissionsOptions
impl StructuralPartialEq for SetPermissionsOptions
Auto Trait Implementations§
impl RefUnwindSafe for SetPermissionsOptions
impl Send for SetPermissionsOptions
impl Sync for SetPermissionsOptions
impl Unpin for SetPermissionsOptions
impl UnwindSafe for SetPermissionsOptions
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