pub struct ServiceAccountReference {
pub name: String,
pub namespace: String,
}
Expand description
ServiceAccountReference specifies a service account and namespace by their names.
Fields§
§name: String
Name is the name of the service account.
namespace: String
Namespace is the namespace of the service account. Service accounts from inside the whitelisted namespaces are allowed to be bound to roles. If Namespace is empty, then the namespace of the RoleBindingRestriction in which the ServiceAccountReference is embedded is used.
Trait Implementations§
Source§impl Clone for ServiceAccountReference
impl Clone for ServiceAccountReference
Source§fn clone(&self) -> ServiceAccountReference
fn clone(&self) -> ServiceAccountReference
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 ServiceAccountReference
impl Debug for ServiceAccountReference
Source§impl Default for ServiceAccountReference
impl Default for ServiceAccountReference
Source§fn default() -> ServiceAccountReference
fn default() -> ServiceAccountReference
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceAccountReference
impl<'de> Deserialize<'de> for ServiceAccountReference
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 ServiceAccountReference
impl PartialEq for ServiceAccountReference
Source§impl Serialize for ServiceAccountReference
impl Serialize for ServiceAccountReference
impl StructuralPartialEq for ServiceAccountReference
Auto Trait Implementations§
impl Freeze for ServiceAccountReference
impl RefUnwindSafe for ServiceAccountReference
impl Send for ServiceAccountReference
impl Sync for ServiceAccountReference
impl Unpin for ServiceAccountReference
impl UnwindSafe for ServiceAccountReference
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