pub struct DirUploader { /* private fields */ }Expand description
Writes each upload into one directory as {uuid}-{basename} and stores its URL under
url_prefix; Panel::uploads_dir installs it and serves the
directory there.
Panel::new("admin")
.uploads(DirUploader::new("/uploads", "var/uploads"))
.serve_dir("/uploads/{*file}", "var/uploads");Implementations§
Trait Implementations§
Source§impl Clone for DirUploader
impl Clone for DirUploader
Source§impl Debug for DirUploader
impl Debug for DirUploader
Auto Trait Implementations§
impl Freeze for DirUploader
impl RefUnwindSafe for DirUploader
impl Send for DirUploader
impl Sync for DirUploader
impl Unpin for DirUploader
impl UnsafeUnpin for DirUploader
impl UnwindSafe for DirUploader
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