pub struct FileDeleteRequest {
pub key: String,
/* private fields */
}Expand description
File delete request (DELETE /paas/v4/files/{file_id})
Fields§
§key: StringImplementations§
Source§impl FileDeleteRequest
impl FileDeleteRequest
pub fn new(key: String, file_id: impl Into<String>) -> Self
Sourcepub fn delete(&self) -> impl Future<Output = Result<Response>> + Send
pub fn delete(&self) -> impl Future<Output = Result<Response>> + Send
Perform HTTP DELETE with error handling compatible with {“error”:{…}}
Sourcepub async fn send(&self) -> Result<FileDeleteResponse>
pub async fn send(&self) -> Result<FileDeleteResponse>
Send delete request and parse typed response.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileDeleteRequest
impl RefUnwindSafe for FileDeleteRequest
impl Send for FileDeleteRequest
impl Sync for FileDeleteRequest
impl Unpin for FileDeleteRequest
impl UnwindSafe for FileDeleteRequest
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