Struct docker_compose_types::RestartPolicy
source · pub struct RestartPolicy {
pub condition: Option<String>,
pub delay: Option<String>,
pub max_attempts: Option<i64>,
pub window: Option<String>,
}
Fields§
§condition: Option<String>
§delay: Option<String>
§max_attempts: Option<i64>
§window: Option<String>
Trait Implementations§
source§impl Clone for RestartPolicy
impl Clone for RestartPolicy
source§fn clone(&self) -> RestartPolicy
fn clone(&self) -> RestartPolicy
Returns a copy of the value. Read more
1.0.0 · 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 RestartPolicy
impl Debug for RestartPolicy
source§impl Default for RestartPolicy
impl Default for RestartPolicy
source§fn default() -> RestartPolicy
fn default() -> RestartPolicy
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RestartPolicy
impl<'de> Deserialize<'de> for RestartPolicy
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 Hash for RestartPolicy
impl Hash for RestartPolicy
source§impl PartialEq for RestartPolicy
impl PartialEq for RestartPolicy
source§fn eq(&self, other: &RestartPolicy) -> bool
fn eq(&self, other: &RestartPolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RestartPolicy
impl Serialize for RestartPolicy
impl Eq for RestartPolicy
impl StructuralPartialEq for RestartPolicy
Auto Trait Implementations§
impl RefUnwindSafe for RestartPolicy
impl Send for RestartPolicy
impl Sync for RestartPolicy
impl Unpin for RestartPolicy
impl UnwindSafe for RestartPolicy
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
§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
Checks if this value is equivalent to the given key. Read more
§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.