pub enum MachineSecret {
Name(String),
Mount(SecretMount),
}Expand description
Where a machine’s secret goes: by name alone (/run/secrets/<name>, read-only, with the
default mode of the machine’s kind), or with its path, owner and mode.
Variants§
Name(String)
The secret’s name: the file /run/secrets/<name>.
Mount(SecretMount)
The secret placed as written.
Implementations§
Trait Implementations§
Source§impl Clone for MachineSecret
impl Clone for MachineSecret
Source§impl Debug for MachineSecret
impl Debug for MachineSecret
Source§impl<'de> Deserialize<'de> for MachineSecret
impl<'de> Deserialize<'de> for MachineSecret
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
impl Eq for MachineSecret
Source§impl JsonSchema for MachineSecret
impl JsonSchema for MachineSecret
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for MachineSecret
impl PartialEq for MachineSecret
Source§impl Serialize for MachineSecret
impl Serialize for MachineSecret
impl StructuralPartialEq for MachineSecret
Auto Trait Implementations§
impl Freeze for MachineSecret
impl RefUnwindSafe for MachineSecret
impl Send for MachineSecret
impl Sync for MachineSecret
impl Unpin for MachineSecret
impl UnsafeUnpin for MachineSecret
impl UnwindSafe for MachineSecret
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.