pub struct PackSecretRequirement {
pub key: String,
pub aliases: Vec<String>,
pub required: bool,
pub generated: Option<GeneratedSecretRequirement>,
}Expand description
A secret a pack declares it needs — the shared output type every consumer’s pack reader parses into, so the deployer, start, and setup agree on the requirement model (including which secrets are system-generated).
key is expected to already be canonical_secret_name-
normalized by the reader. aliases are alternate names a previously-seeded
value may live under. generated carries the generation policy when the
system mints the value, and is None for operator-supplied secrets.
Fields§
§key: StringCanonical secret name.
aliases: Vec<String>Alternate names a previously-seeded value may live under.
required: boolWhether execution requires this secret.
generated: Option<GeneratedSecretRequirement>Generation policy when the system mints this secret; None =
operator-supplied.
Implementations§
Source§impl PackSecretRequirement
impl PackSecretRequirement
Sourcepub fn user_supplied(key: impl Into<String>) -> PackSecretRequirement
pub fn user_supplied(key: impl Into<String>) -> PackSecretRequirement
A required, operator-supplied requirement for key.
Sourcepub fn generated(
key: impl Into<String>,
generated: GeneratedSecretRequirement,
) -> PackSecretRequirement
pub fn generated( key: impl Into<String>, generated: GeneratedSecretRequirement, ) -> PackSecretRequirement
A required, system-generated requirement for key.
Sourcepub fn is_generated(&self) -> bool
pub fn is_generated(&self) -> bool
True when the system mints this secret.
Trait Implementations§
Source§impl Clone for PackSecretRequirement
impl Clone for PackSecretRequirement
Source§fn clone(&self) -> PackSecretRequirement
fn clone(&self) -> PackSecretRequirement
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PackSecretRequirement
impl Debug for PackSecretRequirement
Source§impl<'de> Deserialize<'de> for PackSecretRequirement
impl<'de> Deserialize<'de> for PackSecretRequirement
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PackSecretRequirement, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PackSecretRequirement, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for PackSecretRequirement
Source§impl PartialEq for PackSecretRequirement
impl PartialEq for PackSecretRequirement
Source§fn eq(&self, other: &PackSecretRequirement) -> bool
fn eq(&self, other: &PackSecretRequirement) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for PackSecretRequirement
impl Serialize for PackSecretRequirement
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for PackSecretRequirement
Auto Trait Implementations§
impl Freeze for PackSecretRequirement
impl RefUnwindSafe for PackSecretRequirement
impl Send for PackSecretRequirement
impl Sync for PackSecretRequirement
impl Unpin for PackSecretRequirement
impl UnsafeUnpin for PackSecretRequirement
impl UnwindSafe for PackSecretRequirement
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request