pub struct CacheExpireRequest {
pub async_: Option<bool>,
pub group: Option<String>,
pub remote: Option<String>,
pub with_data: Option<bool>,
}Expand description
CacheExpireRequest
JSON schema
{
"type": "object",
"properties": {
"_async": {
"description": "Run the command asynchronously. Returns a job id
immediately.",
"type": "boolean"
},
"_group": {
"description": "Assign the request to a custom stats group.",
"type": "string"
},
"remote": {
"description": "Remote path to expire from the cache, e.g.
`remote:path/to/dir`.",
"type": "string"
},
"withData": {
"description": "Set to true to drop cached chunk data along with
directory entries.",
"type": "boolean"
}
}
}Fields§
§async_: Option<bool>Run the command asynchronously. Returns a job id immediately.
group: Option<String>Assign the request to a custom stats group.
remote: Option<String>Remote path to expire from the cache, e.g. remote:path/to/dir.
with_data: Option<bool>Set to true to drop cached chunk data along with directory entries.
Trait Implementations§
Source§impl Clone for CacheExpireRequest
impl Clone for CacheExpireRequest
Source§fn clone(&self) -> CacheExpireRequest
fn clone(&self) -> CacheExpireRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CacheExpireRequest
impl Debug for CacheExpireRequest
Source§impl Default for CacheExpireRequest
impl Default for CacheExpireRequest
Source§impl<'de> Deserialize<'de> for CacheExpireRequest
impl<'de> Deserialize<'de> for CacheExpireRequest
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
Source§impl From<&CacheExpireRequest> for CacheExpireRequest
impl From<&CacheExpireRequest> for CacheExpireRequest
Source§fn from(value: &CacheExpireRequest) -> Self
fn from(value: &CacheExpireRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CacheExpireRequest
impl RefUnwindSafe for CacheExpireRequest
impl Send for CacheExpireRequest
impl Sync for CacheExpireRequest
impl Unpin for CacheExpireRequest
impl UnsafeUnpin for CacheExpireRequest
impl UnwindSafe for CacheExpireRequest
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