Struct k8s_openapi::api::flowcontrol::v1beta2::Subject
source · pub struct Subject {
pub group: Option<GroupSubject>,
pub kind: String,
pub service_account: Option<ServiceAccountSubject>,
pub user: Option<UserSubject>,
}
Expand description
Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.
Fields§
§group: Option<GroupSubject>
group
matches based on user group name.
kind: String
kind
indicates which one of the other fields is non-empty. Required
service_account: Option<ServiceAccountSubject>
serviceAccount
matches ServiceAccounts.
user: Option<UserSubject>
user
matches based on username.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Subject
impl<'de> Deserialize<'de> for Subject
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 JsonSchema for Subject
impl JsonSchema for Subject
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(__gen: &mut SchemaGenerator) -> Schema
fn json_schema(__gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for Subject
impl PartialEq for Subject
impl StructuralPartialEq for Subject
Auto Trait Implementations§
impl Freeze for Subject
impl RefUnwindSafe for Subject
impl Send for Subject
impl Sync for Subject
impl Unpin for Subject
impl UnwindSafe for Subject
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