pub struct ServiceConfigOrSecretSettings {
pub source: String,
pub target: Option<String>,
pub uid: Option<String>,
pub gid: Option<String>,
pub mode: Option<StringOrNum>,
}Expand description
Configuration for service configs or secrets, defining how they are mounted in the container.
Fields§
§source: StringName of the config or secret as defined in the top-level configs or secrets section.
target: Option<String>Path in the container where the config or secret will be mounted. Defaults to /
uid: Option<String>UID of the file in the container. Default is 0 (root).
gid: Option<String>GID of the file in the container. Default is 0 (root).
mode: Option<StringOrNum>File permission mode inside the container, in octal. Default is 0444 for configs and 0400 for secrets.
Trait Implementations§
Source§impl Clone for ServiceConfigOrSecretSettings
impl Clone for ServiceConfigOrSecretSettings
Source§fn clone(&self) -> ServiceConfigOrSecretSettings
fn clone(&self) -> ServiceConfigOrSecretSettings
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<'de> Deserialize<'de> for ServiceConfigOrSecretSettings
impl<'de> Deserialize<'de> for ServiceConfigOrSecretSettings
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 Ord for ServiceConfigOrSecretSettings
impl Ord for ServiceConfigOrSecretSettings
Source§impl PartialEq for ServiceConfigOrSecretSettings
impl PartialEq for ServiceConfigOrSecretSettings
Source§fn eq(&self, other: &ServiceConfigOrSecretSettings) -> bool
fn eq(&self, other: &ServiceConfigOrSecretSettings) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ServiceConfigOrSecretSettings
impl PartialOrd for ServiceConfigOrSecretSettings
impl Eq for ServiceConfigOrSecretSettings
impl StructuralPartialEq for ServiceConfigOrSecretSettings
Auto Trait Implementations§
impl Freeze for ServiceConfigOrSecretSettings
impl RefUnwindSafe for ServiceConfigOrSecretSettings
impl Send for ServiceConfigOrSecretSettings
impl Sync for ServiceConfigOrSecretSettings
impl Unpin for ServiceConfigOrSecretSettings
impl UnsafeUnpin for ServiceConfigOrSecretSettings
impl UnwindSafe for ServiceConfigOrSecretSettings
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.