pub enum TopLevelSecret {
File(String),
Environment(String),
External {
external: bool,
name: String,
},
}Expand description
Secret configuration for the Compose application.
See more: https://docs.docker.com/reference/compose-file/secrets/
Variants§
File(String)
Path to a file containing the secret value.
Environment(String)
Path to a file containing the secret value.
External
Trait Implementations§
Source§impl Clone for TopLevelSecret
impl Clone for TopLevelSecret
Source§fn clone(&self) -> TopLevelSecret
fn clone(&self) -> TopLevelSecret
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 TopLevelSecret
impl Debug for TopLevelSecret
Source§impl<'de> Deserialize<'de> for TopLevelSecret
impl<'de> Deserialize<'de> for TopLevelSecret
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 TopLevelSecret
impl PartialEq for TopLevelSecret
Source§impl Serialize for TopLevelSecret
impl Serialize for TopLevelSecret
impl Eq for TopLevelSecret
impl StructuralPartialEq for TopLevelSecret
Auto Trait Implementations§
impl Freeze for TopLevelSecret
impl RefUnwindSafe for TopLevelSecret
impl Send for TopLevelSecret
impl Sync for TopLevelSecret
impl Unpin for TopLevelSecret
impl UnsafeUnpin for TopLevelSecret
impl UnwindSafe for TopLevelSecret
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.