pub struct DeleteQuery {
pub path: String,
pub recursive: bool,
pub dry_run: bool,
pub limit: Option<usize>,
}Expand description
Query for DELETE /api/v1/fs/file.
Not folded into PathQuery: stat and download share that type, and a
recursive/dry_run that parses on those two routes but does nothing
would read to a caller as if it did.
Strictness matters most on this route. recursive already fails safe on a
typo, because omitting it is a 400 — but dry_run is the opposite shape, an
opt-in to the safer behaviour, so dropping it silently turned a preview
into a deletion that answered 204. The two spellings differed by one
letter’s case and both returned a success status.
Fields§
§path: String§recursive: boolMust be set to remove a directory. Omitting it is a 400.
dry_run: boolWhen true, nothing is removed; the response reports what would be.
limit: Option<usize>Trait Implementations§
Source§impl Debug for DeleteQuery
impl Debug for DeleteQuery
Source§impl<'de> Deserialize<'de> for DeleteQuery
impl<'de> Deserialize<'de> for DeleteQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DeleteQuery
impl RefUnwindSafe for DeleteQuery
impl Send for DeleteQuery
impl Sync for DeleteQuery
impl Unpin for DeleteQuery
impl UnsafeUnpin for DeleteQuery
impl UnwindSafe for DeleteQuery
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