pub struct Mount {
pub uri_path: String,
pub fs_path: PathBuf,
}
Expand description
A mapping from URI path to file system path.
Fields§
§uri_path: String
Path prefix of the URI that will map to the directory. Has to start with
/
and not include the trailing /
.
fs_path: PathBuf
Path to a directory on the file system that is served under the specified URI path.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Mount
impl Send for Mount
impl Sync for Mount
impl Unpin for Mount
impl UnwindSafe for Mount
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