pub struct edit;Expand description
Handles requests for the /edit endpoint, to delete/rename media files and directories.
§Arguments
request- A reference to the Actix webHttpRequestobject.payload- JSON payload withurl_pathandtrue_pathreceived from the UI.fernet- Fernet object to encrypt the auth payload that will be set assession_tokencookie.session- Session struct that holds thesession_mappingandsession_trackerto handle sessions.metadata- Struct containing metadata of the application.config- Configuration data for the application.template- Configuration container for the loaded templates.
§Returns
200- Blank HttpResponse to indicate that the request was successful.400- HttpResponse with an error message for invalid action or incorrect payload.401- HttpResponse with an error message for failed authentication.500- HttpResponse with an error message for failed delete/rename.
Trait Implementations§
Source§impl HttpServiceFactory for edit
impl HttpServiceFactory for edit
fn register(self, __config: &mut AppService)
Auto Trait Implementations§
impl Freeze for edit
impl RefUnwindSafe for edit
impl Send for edit
impl Sync for edit
impl Unpin for edit
impl UnwindSafe for edit
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