pub struct WorkloadMatch {
pub workload: String,
pub tenant: TenantId,
pub namespace: NamespaceId,
}Expand description
One entry in a SecretAccess::Workloads allow-list.
A match requires all three fields to be equal. tenant and namespace
default to their singletons rather than to a wildcard: on today’s
single-tenant fleet that makes them free to omit, and it means a rule written
today cannot silently widen to admit a same-named workload in a tenant that
gets created tomorrow. Cross-tenant sharing is spelled as two entries.
Fields§
§workload: StringThe admitted WorkloadSpec::name.
tenant: TenantIdTenant the workload must be in. Defaults to TenantId::singleton.
namespace: NamespaceIdNamespace the workload must be in. Defaults to NamespaceId::singleton.
Implementations§
Trait Implementations§
Source§impl Clone for WorkloadMatch
impl Clone for WorkloadMatch
Source§fn clone(&self) -> WorkloadMatch
fn clone(&self) -> WorkloadMatch
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 WorkloadMatch
impl Debug for WorkloadMatch
Source§impl<'de> Deserialize<'de> for WorkloadMatch
impl<'de> Deserialize<'de> for WorkloadMatch
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 WorkloadMatch
Source§impl PartialEq for WorkloadMatch
impl PartialEq for WorkloadMatch
Source§impl Serialize for WorkloadMatch
impl Serialize for WorkloadMatch
impl StructuralPartialEq for WorkloadMatch
Auto Trait Implementations§
impl Freeze for WorkloadMatch
impl RefUnwindSafe for WorkloadMatch
impl Send for WorkloadMatch
impl Sync for WorkloadMatch
impl Unpin for WorkloadMatch
impl UnsafeUnpin for WorkloadMatch
impl UnwindSafe for WorkloadMatch
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
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.