pub struct CleanupRequest {
pub operation_id: OperationId,
pub containers: Vec<ContainerPath>,
pub read_back: bool,
}Expand description
The body of POST /api/v1/installations/{id}/cleanup.
§Examples
use stratum_node_core::CleanupRequest;
let body = CleanupRequest { operation_id: "x-1".parse()?, containers: vec!["reports/".parse()?], read_back: true };
assert_eq!(
serde_json::to_string(&body)?,
r#"{"operation_id":"x-1","containers":["reports/"],"read_back":true}"#,
);Fields§
§operation_id: OperationIdThe member’s operation ID.
containers: Vec<ContainerPath>The containers now cleaned.
read_back: boolAlways true: each ACL was read back without the authorisation.
Trait Implementations§
Source§impl Clone for CleanupRequest
impl Clone for CleanupRequest
Source§impl Debug for CleanupRequest
impl Debug for CleanupRequest
Source§impl<'de> Deserialize<'de> for CleanupRequest
impl<'de> Deserialize<'de> for CleanupRequest
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
impl Eq for CleanupRequest
Source§impl Hash for CleanupRequest
impl Hash for CleanupRequest
Source§impl PartialEq for CleanupRequest
impl PartialEq for CleanupRequest
Source§impl Serialize for CleanupRequest
impl Serialize for CleanupRequest
impl StructuralPartialEq for CleanupRequest
Auto Trait Implementations§
impl Forget for CleanupRequest
impl Freeze for CleanupRequest
impl Move for CleanupRequest
impl RefUnwindSafe for CleanupRequest
impl Send for CleanupRequestwhere
RawVecInner: Send,
impl Sync for CleanupRequestwhere
RawVecInner: Sync,
impl Unpin for CleanupRequest
impl UnsafeUnpin for CleanupRequestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ContainerPath>: UnsafeUnpin,
impl UnwindSafe for CleanupRequestwhere
RawVecInner: UnwindSafe,
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