Enum espresso::config::IndexStrategyConfig
source · pub enum IndexStrategyConfig {
AlwaysShowListing,
ShowListingWhenAbsent {
filenames: HashSet<String>,
},
IndexFiles {
filenames: HashSet<String>,
},
NoIndex,
}
Expand description
Tells the server how to handle a user request for a directory path.
Variants
AlwaysShowListing
Renders a directory listing when a direct path is requested.
ShowListingWhenAbsent
Attempts to retrieve one of the specified index files when a directory path is requested, otherwise, it renders a directory listing.
IndexFiles
Attempts to retrieve one of the specified index files when a directory path is requested, otherwise, it returns a 404.
NoIndex
Returns a 404 if a directory path is requested.
Trait Implementations
sourceimpl Clone for IndexStrategyConfig
impl Clone for IndexStrategyConfig
sourcefn clone(&self) -> IndexStrategyConfig
fn clone(&self) -> IndexStrategyConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for IndexStrategyConfig
impl Debug for IndexStrategyConfig
sourceimpl<'de> Deserialize<'de> for IndexStrategyConfig
impl<'de> Deserialize<'de> for IndexStrategyConfig
sourcefn 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
sourceimpl From<IndexStrategyConfig> for IndexStrategy
impl From<IndexStrategyConfig> for IndexStrategy
sourcefn from(config: IndexStrategyConfig) -> Self
fn from(config: IndexStrategyConfig) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<IndexStrategyConfig> for IndexStrategyConfig
impl PartialEq<IndexStrategyConfig> for IndexStrategyConfig
sourcefn eq(&self, other: &IndexStrategyConfig) -> bool
fn eq(&self, other: &IndexStrategyConfig) -> bool
sourceimpl Serialize for IndexStrategyConfig
impl Serialize for IndexStrategyConfig
impl StructuralPartialEq for IndexStrategyConfig
Auto Trait Implementations
impl RefUnwindSafe for IndexStrategyConfig
impl Send for IndexStrategyConfig
impl Sync for IndexStrategyConfig
impl Unpin for IndexStrategyConfig
impl UnwindSafe for IndexStrategyConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more