[−][src]Struct k8s_openapi::api::authorization::v1::LocalSubjectAccessReview
LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.
Fields
metadata: Option<ObjectMeta>spec: SubjectAccessReviewSpecSpec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted.
status: Option<SubjectAccessReviewStatus>Status is filled in by the server and indicates whether the request is allowed or not
Methods
impl LocalSubjectAccessReview[src]
pub fn create_namespaced_local_subject_access_review(
namespace: &str,
body: &LocalSubjectAccessReview,
optional: CreateNamespacedLocalSubjectAccessReviewOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedLocalSubjectAccessReviewResponse>), RequestError>[src]
namespace: &str,
body: &LocalSubjectAccessReview,
optional: CreateNamespacedLocalSubjectAccessReviewOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedLocalSubjectAccessReviewResponse>), RequestError>
create a LocalSubjectAccessReview
Use the returned crate::ResponseBody<CreateNamespacedLocalSubjectAccessReviewResponse> constructor, or CreateNamespacedLocalSubjectAccessReviewResponse directly, to parse the HTTP response.
Arguments
-
namespaceobject name and auth scope, such as for teams and projects
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
Trait Implementations
impl Resource for LocalSubjectAccessReview[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 LocalSubjectAccessReview[src]
impl Default for LocalSubjectAccessReview[src]
fn default() -> LocalSubjectAccessReview[src]
impl Clone for LocalSubjectAccessReview[src]
fn clone(&self) -> LocalSubjectAccessReview[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq<LocalSubjectAccessReview> for LocalSubjectAccessReview[src]
fn eq(&self, other: &LocalSubjectAccessReview) -> bool[src]
fn ne(&self, other: &LocalSubjectAccessReview) -> bool[src]
impl Debug for LocalSubjectAccessReview[src]
impl Serialize for LocalSubjectAccessReview[src]
impl<'de> Deserialize<'de> for LocalSubjectAccessReview[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Sync for LocalSubjectAccessReview
impl Unpin for LocalSubjectAccessReview
impl Send for LocalSubjectAccessReview
impl UnwindSafe for LocalSubjectAccessReview
impl RefUnwindSafe for LocalSubjectAccessReview
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
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> 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> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
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>,