pub struct RootSecurityConfig {
pub allow_read: bool,
pub allow_write: bool,
pub allow_execute: bool,
pub max_file_size: Option<u64>,
pub allowed_extensions: Option<Vec<String>>,
pub blocked_extensions: Option<Vec<String>>,
pub blocked_directories: Option<Vec<String>>,
}Expand description
Security configuration for a root
Fields§
§allow_read: boolWhether to allow read operations
allow_write: boolWhether to allow write operations
allow_execute: boolWhether to allow execute operations
max_file_size: Option<u64>Maximum file size allowed (in bytes)
allowed_extensions: Option<Vec<String>>Allowed file extensions (if specified, only these extensions are allowed)
blocked_extensions: Option<Vec<String>>Blocked file extensions (these extensions are always blocked)
blocked_directories: Option<Vec<String>>Blocked directory names
Trait Implementations§
Source§impl Clone for RootSecurityConfig
impl Clone for RootSecurityConfig
Source§fn clone(&self) -> RootSecurityConfig
fn clone(&self) -> RootSecurityConfig
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 Debug for RootSecurityConfig
impl Debug for RootSecurityConfig
Source§impl Default for RootSecurityConfig
impl Default for RootSecurityConfig
Source§fn default() -> RootSecurityConfig
fn default() -> RootSecurityConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RootSecurityConfig
impl<'de> Deserialize<'de> for RootSecurityConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RootSecurityConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RootSecurityConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for RootSecurityConfig
impl JsonSchema for RootSecurityConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for RootSecurityConfig
impl Serialize for RootSecurityConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for RootSecurityConfig
impl RefUnwindSafe for RootSecurityConfig
impl Send for RootSecurityConfig
impl Sync for RootSecurityConfig
impl Unpin for RootSecurityConfig
impl UnwindSafe for RootSecurityConfig
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