pub enum SecretAs {
Env,
File,
}Expand description
How an environment secret reaches the app (KEY: {secret: NAME, as: ...}).
Variants§
Env
The variable KEY holds the value. An OCI image’s variables are
instance config (environment.KEY), readable by anyone with access
to the incus project.
File
The value is the file /run/secrets/NAME (mode 0400, owned by the
user the app starts as) and the variable KEY_FILE holds its path:
the _FILE convention of postgres, mariadb and many other images.
Trait Implementations§
impl Copy for SecretAs
Source§impl<'de> Deserialize<'de> for SecretAs
impl<'de> Deserialize<'de> for SecretAs
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 SecretAs
Source§impl JsonSchema for SecretAs
impl JsonSchema for SecretAs
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 SecretAs
Auto Trait Implementations§
impl Freeze for SecretAs
impl RefUnwindSafe for SecretAs
impl Send for SecretAs
impl Sync for SecretAs
impl Unpin for SecretAs
impl UnsafeUnpin for SecretAs
impl UnwindSafe for SecretAs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.