pub struct DependsOnSettings {
pub condition: DependsOnCondition,
pub restart: Option<bool>,
pub required: Option<bool>,
}Expand description
With the depends_on attribute, you can control the order of service startup and shutdow```
It is useful if services are closely coupled, and the startup sequence impacts the application’s functionality.
See more: https://docs.docker.com/reference/compose-file/services/#depends_on
Fields§
§condition: DependsOnConditionCondition to wait for.
restart: Option<bool>Whether to restart dependent services when this service is restarted.
required: Option<bool>Whether the dependency is required for the dependent service to start. (default: true)
Trait Implementations§
Source§impl Clone for DependsOnSettings
impl Clone for DependsOnSettings
Source§fn clone(&self) -> DependsOnSettings
fn clone(&self) -> DependsOnSettings
Returns a duplicate 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 DependsOnSettings
impl Debug for DependsOnSettings
Source§impl<'de> Deserialize<'de> for DependsOnSettings
impl<'de> Deserialize<'de> for DependsOnSettings
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 DependsOnSettings
impl PartialEq for DependsOnSettings
Source§impl Serialize for DependsOnSettings
impl Serialize for DependsOnSettings
impl Eq for DependsOnSettings
impl StructuralPartialEq for DependsOnSettings
Auto Trait Implementations§
impl Freeze for DependsOnSettings
impl RefUnwindSafe for DependsOnSettings
impl Send for DependsOnSettings
impl Sync for DependsOnSettings
impl Unpin for DependsOnSettings
impl UnsafeUnpin for DependsOnSettings
impl UnwindSafe for DependsOnSettings
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.