pub struct TopLevelConfig {
pub name: Option<String>,
pub external: Option<bool>,
pub content: Option<String>,
pub environment: Option<String>,
pub file: Option<String>,
}Expand description
Defines or references configuration data that is granted to services in your Compose application.
See more: https://docs.docker.com/reference/compose-file/configs/
Fields§
§name: Option<String>The name of the config object in the container engine to look up. This field can be used to reference configs that contain special characters. The name is used as is and will not be scoped with the project name.
external: Option<bool>If set to true, external specifies that this config has already been created. Compose does not attempt to create it, and if it does not exist, an error occurs.
content: Option<String>The content is created with the inlined value. Introduced in Docker Compose version 2.23.1.
environment: Option<String>The config content is created with the value of an environment variable.
file: Option<String>The config is created with the contents of the file at the specified path.
Trait Implementations§
Source§impl Clone for TopLevelConfig
impl Clone for TopLevelConfig
Source§fn clone(&self) -> TopLevelConfig
fn clone(&self) -> TopLevelConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TopLevelConfig
impl Debug for TopLevelConfig
Source§impl Default for TopLevelConfig
impl Default for TopLevelConfig
Source§fn default() -> TopLevelConfig
fn default() -> TopLevelConfig
Source§impl<'de> Deserialize<'de> for TopLevelConfigwhere
TopLevelConfig: Default,
impl<'de> Deserialize<'de> for TopLevelConfigwhere
TopLevelConfig: Default,
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>,
Source§impl PartialEq for TopLevelConfig
impl PartialEq for TopLevelConfig
Source§impl Serialize for TopLevelConfig
impl Serialize for TopLevelConfig
impl Eq for TopLevelConfig
impl StructuralPartialEq for TopLevelConfig
Auto Trait Implementations§
impl Freeze for TopLevelConfig
impl RefUnwindSafe for TopLevelConfig
impl Send for TopLevelConfig
impl Sync for TopLevelConfig
impl Unpin for TopLevelConfig
impl UnsafeUnpin for TopLevelConfig
impl UnwindSafe for TopLevelConfig
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
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
key and return true if they are equal.