pub struct ServiceAccountRestriction {
pub namespaces: Vec<String>,
pub serviceaccounts: Vec<ServiceAccountReference>,
}
Expand description
ServiceAccountRestriction matches a service account by a string match on either the service-account name or the name of the service account’s namespace.
Fields§
§namespaces: Vec<String>
Namespaces specifies a list of literal namespace names.
serviceaccounts: Vec<ServiceAccountReference>
ServiceAccounts specifies a list of literal service-account names.
Trait Implementations§
Source§impl Clone for ServiceAccountRestriction
impl Clone for ServiceAccountRestriction
Source§fn clone(&self) -> ServiceAccountRestriction
fn clone(&self) -> ServiceAccountRestriction
Returns a duplicate of the value. Read more
1.0.0 · 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 ServiceAccountRestriction
impl Debug for ServiceAccountRestriction
Source§impl Default for ServiceAccountRestriction
impl Default for ServiceAccountRestriction
Source§fn default() -> ServiceAccountRestriction
fn default() -> ServiceAccountRestriction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceAccountRestriction
impl<'de> Deserialize<'de> for ServiceAccountRestriction
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 StructuralPartialEq for ServiceAccountRestriction
Auto Trait Implementations§
impl Freeze for ServiceAccountRestriction
impl RefUnwindSafe for ServiceAccountRestriction
impl Send for ServiceAccountRestriction
impl Sync for ServiceAccountRestriction
impl Unpin for ServiceAccountRestriction
impl UnwindSafe for ServiceAccountRestriction
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