SmbSettingsShareSettings

Struct SmbSettingsShareSettings 

Source
pub struct SmbSettingsShareSettings {
Show 28 fields pub access_based_enumeration: Option<bool>, pub access_based_enumeration_root_only: Option<bool>, pub allow_delete_readonly: Option<bool>, pub allow_execute_always: Option<bool>, pub ca_timeout: Option<i32>, pub ca_write_integrity: Option<String>, pub change_notify: Option<String>, pub create_permissions: Option<String>, pub csc_policy: Option<String>, pub directory_create_mask: Option<i32>, pub directory_create_mode: Option<i32>, pub file_create_mask: Option<i32>, pub file_create_mode: Option<i32>, pub file_filter_extensions: Option<Vec<String>>, pub file_filter_type: Option<String>, pub file_filtering_enabled: Option<bool>, pub hide_dot_files: Option<bool>, pub host_acl: Option<Vec<String>>, pub impersonate_guest: Option<String>, pub impersonate_user: Option<String>, pub mangle_byte_start: Option<i32>, pub mangle_map: Option<Vec<String>>, pub ntfs_acl_support: Option<bool>, pub oplocks: Option<bool>, pub strict_ca_lockout: Option<bool>, pub strict_flush: Option<bool>, pub strict_locking: Option<bool>, pub zone: Option<String>,
}

Fields§

§access_based_enumeration: Option<bool>

Only enumerate files and folders the requesting user has access to.

§access_based_enumeration_root_only: Option<bool>

Access-based enumeration on only the root directory of the share.

§allow_delete_readonly: Option<bool>

Allow deletion of read-only files in the share.

§allow_execute_always: Option<bool>

Allows users to execute files they have read rights for.

§ca_timeout: Option<i32>

Persistent open timeout for the share.

§ca_write_integrity: Option<String>

Specify the level of write-integrity on continuously available shares.

§change_notify: Option<String>

Specify level of change notification alerts on the share.

§create_permissions: Option<String>

Set the create permissions for new files and directories in share.

§csc_policy: Option<String>

Client-side caching policy for the shares.

§directory_create_mask: Option<i32>

Unix umask or mode bits.

§directory_create_mode: Option<i32>

Unix umask or mode bits.

§file_create_mask: Option<i32>

Unix umask or mode bits.

§file_create_mode: Option<i32>

Unix umask or mode bits.

§file_filter_extensions: Option<Vec<String>>

Specifies the list of file extensions.

§file_filter_type: Option<String>

Specifies if filter list is for deny or allow. Default is deny.

§file_filtering_enabled: Option<bool>

Enables file filtering on the share.

§hide_dot_files: Option<bool>

Hide files and directories that begin with a period ‘.’.

§host_acl: Option<Vec<String>>

An ACL expressing which hosts are allowed access. A deny clause must be the final entry.

§impersonate_guest: Option<String>

Specify the condition in which user access is done as the guest account.

§impersonate_user: Option<String>

User account to be used as guest account.

§mangle_byte_start: Option<i32>

Specifies the wchar_t starting point for automatic byte mangling.

§mangle_map: Option<Vec<String>>

Character mangle map.

§ntfs_acl_support: Option<bool>

Support NTFS ACLs on files and directories.

§oplocks: Option<bool>

Allow oplock requests.

§strict_ca_lockout: Option<bool>

Specifies if persistent opens would do strict lockout on the share.

§strict_flush: Option<bool>

Handle SMB flush operations.

§strict_locking: Option<bool>

Specifies whether byte range locks contend against SMB I/O.

§zone: Option<String>

Name of the access zone in which to update settings

Trait Implementations§

Source§

impl Debug for SmbSettingsShareSettings

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SmbSettingsShareSettings

Source§

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 Serialize for SmbSettingsShareSettings

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Err = <U as TryFrom<T>>::Err

Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Err>

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,