pub struct SecretRef {
pub source: String,
pub target: Option<String>,
pub uid: Option<u32>,
pub gid: Option<u32>,
pub mode: Option<String>,
pub on_change: Option<OnChange>,
}Expand description
A service’s use of a secret.
Fields§
§source: StringThe top-level secret’s key.
target: Option<String>File name under /run/secrets, or an absolute path. Default: source.
uid: Option<u32>Owner in the guest: a uid. Default: the service’s numeric user, else 0.
gid: Option<u32>§mode: Option<String>Octal mode, e.g. 0400 (default) or "0440".
on_change: Option<OnChange>What a new version of the secret does to this service (overrides the
top-level secret’s on_change).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SecretRef
impl<'de> Deserialize<'de> for SecretRef
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for SecretRef
impl JsonSchema for SecretRef
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 moreimpl StructuralPartialEq for SecretRef
Auto Trait Implementations§
impl Freeze for SecretRef
impl RefUnwindSafe for SecretRef
impl Send for SecretRef
impl Sync for SecretRef
impl Unpin for SecretRef
impl UnsafeUnpin for SecretRef
impl UnwindSafe for SecretRef
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