pub struct SecretName {
pub storage: Option<String>,
pub path: String,
pub key: Option<String>,
pub default: Option<String>,
}Expand description
A secret in a storage: path#key, or path for the whole secret.
Fields§
§storage: Option<String>The storage it comes from; none for the default one.
path: StringThe secret’s path in the storage (etl/db).
key: Option<String>The key in the secret (password); none for the whole secret, an object of key to
value.
default: Option<String>What a reference reads when the secret or its key is missing
(secrets['etl/db'].get('password', '')); a key’s only, never declared in secrets=.
Implementations§
Trait Implementations§
Source§impl Clone for SecretName
impl Clone for SecretName
Source§fn clone(&self) -> SecretName
fn clone(&self) -> SecretName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SecretName
impl Debug for SecretName
Source§impl<'de> Deserialize<'de> for SecretName
impl<'de> Deserialize<'de> for SecretName
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 Display for SecretName
impl Display for SecretName
impl Eq for SecretName
Source§impl Hash for SecretName
impl Hash for SecretName
Source§impl JsonSchema for SecretName
impl JsonSchema for SecretName
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 Ord for SecretName
impl Ord for SecretName
Source§fn cmp(&self, other: &SecretName) -> Ordering
fn cmp(&self, other: &SecretName) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SecretName
impl PartialEq for SecretName
Source§impl PartialOrd for SecretName
impl PartialOrd for SecretName
Source§impl Serialize for SecretName
impl Serialize for SecretName
impl StructuralPartialEq for SecretName
Auto Trait Implementations§
impl Freeze for SecretName
impl RefUnwindSafe for SecretName
impl Send for SecretName
impl Sync for SecretName
impl Unpin for SecretName
impl UnsafeUnpin for SecretName
impl UnwindSafe for SecretName
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