pub struct FileServerConfig { /* private fields */ }Implementations§
Source§impl FileServerConfig
impl FileServerConfig
pub fn new(root_dir: impl Into<PathBuf>) -> Self
pub fn mount_path(&self) -> &str
pub fn root_dir(&self) -> &Path
pub fn mounts(&self) -> &[FileMount]
pub fn default_mount(&self) -> &FileMount
pub fn mount(&self, mount_id: &str) -> Option<&FileMount>
pub fn branding(&self) -> &Branding
pub fn theme(&self) -> &Theme
pub fn features(&self) -> &FeatureFlags
pub fn route_paths(&self) -> RoutePaths
pub fn with_mount_path(self, mount_path: impl Into<String>) -> Self
pub fn with_branding(self, branding: Branding) -> Self
pub fn with_mounts(self, mounts: Vec<FileMount>) -> Self
pub fn with_mount(self, mount: FileMount) -> Self
pub fn with_theme(self, theme: Theme) -> Self
pub fn with_features(self, features: FeatureFlags) -> Self
Trait Implementations§
Source§impl Clone for FileServerConfig
impl Clone for FileServerConfig
Source§fn clone(&self) -> FileServerConfig
fn clone(&self) -> FileServerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FileServerConfig
impl Debug for FileServerConfig
Source§impl PartialEq for FileServerConfig
impl PartialEq for FileServerConfig
Source§fn eq(&self, other: &FileServerConfig) -> bool
fn eq(&self, other: &FileServerConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for FileServerConfig
impl StructuralPartialEq for FileServerConfig
Auto Trait Implementations§
impl Freeze for FileServerConfig
impl RefUnwindSafe for FileServerConfig
impl Send for FileServerConfig
impl Sync for FileServerConfig
impl Unpin for FileServerConfig
impl UnsafeUnpin for FileServerConfig
impl UnwindSafe for FileServerConfig
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