pub struct ComposeSecret {
pub file: Option<String>,
pub environment: Option<String>,
pub external: Option<ExternalRef>,
pub name: Option<String>,
pub template_driver: Option<String>,
}Expand description
Secret definition (Swarm mode).
Fields§
§file: Option<String>File path
environment: Option<String>Environment variable
external: Option<ExternalRef>External secret reference
name: Option<String>Secret name
template_driver: Option<String>Template driver
Trait Implementations§
Source§impl Clone for ComposeSecret
impl Clone for ComposeSecret
Source§fn clone(&self) -> ComposeSecret
fn clone(&self) -> ComposeSecret
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 ComposeSecret
impl Debug for ComposeSecret
Source§impl Default for ComposeSecret
impl Default for ComposeSecret
Source§fn default() -> ComposeSecret
fn default() -> ComposeSecret
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ComposeSecret
impl<'de> Deserialize<'de> for ComposeSecret
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
Auto Trait Implementations§
impl Freeze for ComposeSecret
impl RefUnwindSafe for ComposeSecret
impl Send for ComposeSecret
impl Sync for ComposeSecret
impl Unpin for ComposeSecret
impl UnwindSafe for ComposeSecret
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