pub struct VaultConfig {
pub name: String,
pub path: PathBuf,
pub is_default: bool,
pub watch_for_changes: Option<bool>,
pub max_file_size: Option<u64>,
pub allowed_extensions: Option<HashSet<String>>,
pub excluded_paths: Option<HashSet<String>>,
pub enable_caching: Option<bool>,
pub cache_ttl: Option<u64>,
pub template_dirs: Option<Vec<PathBuf>>,
pub allowed_operations: Option<HashSet<String>>,
}Expand description
Configuration for a single vault
Fields§
§name: StringUnique identifier for this vault
path: PathBufPath to the vault directory
is_default: boolWhether this is the default vault
watch_for_changes: Option<bool>§max_file_size: Option<u64>§allowed_extensions: Option<HashSet<String>>§excluded_paths: Option<HashSet<String>>§enable_caching: Option<bool>§cache_ttl: Option<u64>§template_dirs: Option<Vec<PathBuf>>§allowed_operations: Option<HashSet<String>>Implementations§
Trait Implementations§
Source§impl Clone for VaultConfig
impl Clone for VaultConfig
Source§fn clone(&self) -> VaultConfig
fn clone(&self) -> VaultConfig
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 VaultConfig
impl Debug for VaultConfig
Source§impl<'de> Deserialize<'de> for VaultConfig
impl<'de> Deserialize<'de> for VaultConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VaultConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VaultConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for VaultConfig
impl Serialize for VaultConfig
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 VaultConfig
impl RefUnwindSafe for VaultConfig
impl Send for VaultConfig
impl Sync for VaultConfig
impl Unpin for VaultConfig
impl UnwindSafe for VaultConfig
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