pub struct ComposeDownRequest { /* private fields */ }Expand description
Deadline-bound Compose teardown request.
Implementations§
Source§impl ComposeDownRequest
impl ComposeDownRequest
Sourcepub fn new(
operation_id: OperationId,
operation: OperationName,
project: ComposeProjectRef,
expected: ComposeRecreateFingerprint,
force: bool,
remove_volumes: bool,
deadline: Timestamp,
) -> InfraResult<Self>
pub fn new( operation_id: OperationId, operation: OperationName, project: ComposeProjectRef, expected: ComposeRecreateFingerprint, force: bool, remove_volumes: bool, deadline: Timestamp, ) -> InfraResult<Self>
Creates a validated teardown request.
Sourcepub fn operation_id(&self) -> &OperationId
pub fn operation_id(&self) -> &OperationId
Returns the operation identity.
Sourcepub const fn project(&self) -> &ComposeProjectRef
pub const fn project(&self) -> &ComposeProjectRef
Returns the Compose project reference.
Sourcepub const fn expected(&self) -> &ComposeRecreateFingerprint
pub const fn expected(&self) -> &ComposeRecreateFingerprint
Returns the expected pre-state.
Sourcepub const fn remove_volumes(&self) -> bool
pub const fn remove_volumes(&self) -> bool
Returns whether named volumes are removed.
Trait Implementations§
Source§impl Clone for ComposeDownRequest
impl Clone for ComposeDownRequest
Source§fn clone(&self) -> ComposeDownRequest
fn clone(&self) -> ComposeDownRequest
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 ComposeDownRequest
impl Debug for ComposeDownRequest
Source§impl PartialEq for ComposeDownRequest
impl PartialEq for ComposeDownRequest
Source§fn eq(&self, other: &ComposeDownRequest) -> bool
fn eq(&self, other: &ComposeDownRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ComposeDownRequest
impl StructuralPartialEq for ComposeDownRequest
Auto Trait Implementations§
impl Freeze for ComposeDownRequest
impl RefUnwindSafe for ComposeDownRequest
impl Send for ComposeDownRequest
impl Sync for ComposeDownRequest
impl Unpin for ComposeDownRequest
impl UnsafeUnpin for ComposeDownRequest
impl UnwindSafe for ComposeDownRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.