pub struct ContainerRecreateRequest { /* private fields */ }Expand description
Deadline-bound request to replace one container from its captured configuration.
Implementations§
Source§impl ContainerRecreateRequest
impl ContainerRecreateRequest
Sourcepub fn new(
operation_id: OperationId,
operation: OperationName,
expected: ContainerRecreateFingerprint,
pull: bool,
deadline: Timestamp,
) -> Self
pub fn new( operation_id: OperationId, operation: OperationName, expected: ContainerRecreateFingerprint, pull: bool, deadline: Timestamp, ) -> Self
Creates a validated recreate request.
Sourcepub fn operation_id(&self) -> &OperationId
pub fn operation_id(&self) -> &OperationId
Returns the operation identity.
Sourcepub const fn expected(&self) -> &ContainerRecreateFingerprint
pub const fn expected(&self) -> &ContainerRecreateFingerprint
Returns the expected pre-state fingerprint.
Trait Implementations§
Source§impl Clone for ContainerRecreateRequest
impl Clone for ContainerRecreateRequest
Source§fn clone(&self) -> ContainerRecreateRequest
fn clone(&self) -> ContainerRecreateRequest
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 ContainerRecreateRequest
impl Debug for ContainerRecreateRequest
Source§impl<'de> Deserialize<'de> for ContainerRecreateRequest
impl<'de> Deserialize<'de> for ContainerRecreateRequest
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 PartialEq for ContainerRecreateRequest
impl PartialEq for ContainerRecreateRequest
Source§fn eq(&self, other: &ContainerRecreateRequest) -> bool
fn eq(&self, other: &ContainerRecreateRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContainerRecreateRequest
impl Serialize for ContainerRecreateRequest
impl Eq for ContainerRecreateRequest
impl StructuralPartialEq for ContainerRecreateRequest
Auto Trait Implementations§
impl Freeze for ContainerRecreateRequest
impl RefUnwindSafe for ContainerRecreateRequest
impl Send for ContainerRecreateRequest
impl Sync for ContainerRecreateRequest
impl Unpin for ContainerRecreateRequest
impl UnsafeUnpin for ContainerRecreateRequest
impl UnwindSafe for ContainerRecreateRequest
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.