pub struct DirListOpts<'a> {
pub root_path: &'a Path,
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 dir_listing_download: &'a [DirDownloadFmt],
pub ignore_hidden_files: bool,
pub disable_symlinks: bool,
}Available on crate feature
directory-listing only.Expand description
Directory listing options.
Fields§
§root_path: &'a PathRequest method.
method: &'a MethodRequest method.
current_path: &'a strCurrent Request path.
uri_query: Option<&'a str>URI Request query
filepath: &'a PathRequest file path.
dir_listing_order: u8Directory listing order.
dir_listing_format: &'a DirListFmtDirectory listing format.
dir_listing_download: &'a [DirDownloadFmt]Available on crate feature
directory-listing-download only.Directory listing download.
Ignore hidden files (dotfiles).
disable_symlinks: boolPrevent following symlinks for files and directories.
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