#[non_exhaustive]pub struct SecretRequirement {
pub key: SecretKey,
pub required: bool,
pub description: Option<String>,
pub scope: Option<SecretScope>,
pub format: Option<SecretFormat>,
pub schema: Option<Value>,
pub examples: Vec<String>,
}Expand description
Structured secret requirement used in capabilities, bindings, and deployment plans.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: SecretKeyLogical key the runtime should resolve.
required: boolWhether the secret is mandatory for execution.
description: Option<String>Optional description for operator-facing tooling.
scope: Option<SecretScope>Expected scope for resolution (environment/tenant/team).
format: Option<SecretFormat>Preferred secret format when known.
schema: Option<Value>Optional JSON Schema fragment describing the value shape.
examples: Vec<String>Example payloads for documentation.
Trait Implementations§
Source§impl Clone for SecretRequirement
impl Clone for SecretRequirement
Source§fn clone(&self) -> SecretRequirement
fn clone(&self) -> SecretRequirement
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SecretRequirement
impl Debug for SecretRequirement
Source§impl Default for SecretRequirement
impl Default for SecretRequirement
Source§impl<'de> Deserialize<'de> for SecretRequirement
impl<'de> Deserialize<'de> for SecretRequirement
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 PartialEq for SecretRequirement
impl PartialEq for SecretRequirement
Source§impl Serialize for SecretRequirement
impl Serialize for SecretRequirement
impl Eq for SecretRequirement
impl StructuralPartialEq for SecretRequirement
Auto Trait Implementations§
impl Freeze for SecretRequirement
impl RefUnwindSafe for SecretRequirement
impl Send for SecretRequirement
impl Sync for SecretRequirement
impl Unpin for SecretRequirement
impl UnwindSafe for SecretRequirement
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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.