[−][src]Struct k8s_openapi::api::authorization::v1::SelfSubjectAccessReview
SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action
Fields
metadata: Option<ObjectMeta>
spec: SelfSubjectAccessReviewSpec
Spec holds information about the request being evaluated. user and groups must be empty
status: Option<SubjectAccessReviewStatus>
Status is filled in by the server and indicates whether the request is allowed or not
Methods
impl SelfSubjectAccessReview
[src]
pub fn create_self_subject_access_review(
body: &SelfSubjectAccessReview,
optional: CreateSelfSubjectAccessReviewOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateSelfSubjectAccessReviewResponse>), RequestError>
[src]
body: &SelfSubjectAccessReview,
optional: CreateSelfSubjectAccessReviewOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateSelfSubjectAccessReviewResponse>), RequestError>
create a SelfSubjectAccessReview
Use the returned crate::ResponseBody
<
CreateSelfSubjectAccessReviewResponse
>
constructor, or CreateSelfSubjectAccessReviewResponse
directly, to parse the HTTP response.
Arguments
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Trait Implementations
impl Resource for SelfSubjectAccessReview
[src]
fn api_version() -> &'static str
[src]
fn group() -> &'static str
[src]
fn kind() -> &'static str
[src]
fn version() -> &'static str
[src]
impl Metadata for SelfSubjectAccessReview
[src]
impl Default for SelfSubjectAccessReview
[src]
fn default() -> SelfSubjectAccessReview
[src]
impl Clone for SelfSubjectAccessReview
[src]
fn clone(&self) -> SelfSubjectAccessReview
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<SelfSubjectAccessReview> for SelfSubjectAccessReview
[src]
fn eq(&self, other: &SelfSubjectAccessReview) -> bool
[src]
fn ne(&self, other: &SelfSubjectAccessReview) -> bool
[src]
impl Debug for SelfSubjectAccessReview
[src]
impl Serialize for SelfSubjectAccessReview
[src]
impl<'de> Deserialize<'de> for SelfSubjectAccessReview
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Unpin for SelfSubjectAccessReview
impl Sync for SelfSubjectAccessReview
impl Send for SelfSubjectAccessReview
impl UnwindSafe for SelfSubjectAccessReview
impl RefUnwindSafe for SelfSubjectAccessReview
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,