pub enum SecretDecl {
Secret(SecretName),
Prefix {
storage: Option<String>,
prefix: String,
},
}Expand description
A secret a task declares in secrets=: one it may read on demand (schedr task-ctx secret get, task_ctx.secret(...)), fetched before its process starts, or a prefix
covering every secret under it, fetched when read.
Variants§
Secret(SecretName)
One secret, or a whole one (every key).
Prefix
Every secret under a prefix (SecretPrefix('connections/')), at any depth.
Implementations§
Trait Implementations§
Source§impl Clone for SecretDecl
impl Clone for SecretDecl
Source§fn clone(&self) -> SecretDecl
fn clone(&self) -> SecretDecl
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 SecretDecl
impl Debug for SecretDecl
Source§impl<'de> Deserialize<'de> for SecretDecl
impl<'de> Deserialize<'de> for SecretDecl
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 SecretDecl
impl Display for SecretDecl
impl Eq for SecretDecl
Source§impl JsonSchema for SecretDecl
impl JsonSchema for SecretDecl
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 SecretDecl
impl PartialEq for SecretDecl
Source§impl Serialize for SecretDecl
impl Serialize for SecretDecl
impl StructuralPartialEq for SecretDecl
Auto Trait Implementations§
impl Freeze for SecretDecl
impl RefUnwindSafe for SecretDecl
impl Send for SecretDecl
impl Sync for SecretDecl
impl Unpin for SecretDecl
impl UnsafeUnpin for SecretDecl
impl UnwindSafe for SecretDecl
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