Struct static_web_server::directory_listing::DirListOpts
source · pub struct DirListOpts<'a> {
pub method: &'a Method,
pub current_path: &'a str,
pub uri_query: Option<&'a str>,
pub filepath: &'a Path,
pub dir_listing_order: u8,
pub dir_listing_format: &'a DirListFmt,
pub ignore_hidden_files: bool,
}
Available on crate feature
directory-listing
only.Expand description
Directory listing options.
Fields§
§method: &'a Method
Request method.
current_path: &'a str
Current Request path.
uri_query: Option<&'a str>
URI Request query
filepath: &'a Path
Request file path.
dir_listing_order: u8
Directory listing order.
dir_listing_format: &'a DirListFmt
Directory listing format.
Ignore hidden files (dotfiles).
Auto Trait Implementations§
impl<'a> Freeze for DirListOpts<'a>
impl<'a> RefUnwindSafe for DirListOpts<'a>
impl<'a> Send for DirListOpts<'a>
impl<'a> Sync for DirListOpts<'a>
impl<'a> Unpin for DirListOpts<'a>
impl<'a> UnwindSafe for DirListOpts<'a>
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