pub struct ResourceSettings {
pub root_path: PathBuf,
pub allowed_schemes: Vec<String>,
pub max_file_size: usize,
pub enable_templates: bool,
}
Fields§
§root_path: PathBuf
§allowed_schemes: Vec<String>
§max_file_size: usize
§enable_templates: bool
Trait Implementations§
Source§impl Clone for ResourceSettings
impl Clone for ResourceSettings
Source§fn clone(&self) -> ResourceSettings
fn clone(&self) -> ResourceSettings
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 ResourceSettings
impl Debug for ResourceSettings
Source§impl<'de> Deserialize<'de> for ResourceSettings
impl<'de> Deserialize<'de> for ResourceSettings
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
Auto Trait Implementations§
impl Freeze for ResourceSettings
impl RefUnwindSafe for ResourceSettings
impl Send for ResourceSettings
impl Sync for ResourceSettings
impl Unpin for ResourceSettings
impl UnwindSafe for ResourceSettings
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