[−][src]Struct openshift_openapi::api::authorization::v1::SubjectAccessReview
SubjectAccessReview is an object for requesting information about whether a user or group can perform an action
Fields
content: Option<RawExtension>Content is the actual content of the request for create and update
groups: Vec<String>GroupsSlice is optional. Groups is the list of groups to which the User belongs.
is_non_resource_url: boolIsNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hieraarchy)
namespace: StringNamespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces
path: StringPath is the path of a non resource URL
resource: StringResource is one of the existing resource types
resource_api_group: StringGroup is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined
resource_api_version: StringVersion is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined
resource_name: StringResourceName is the name of the resource being requested for a "get" or deleted for a "delete"
scopes: Vec<String>Scopes to use for the evaluation. Empty means "use the unscoped (full) permissions of the user/groups". Nil for a self-SAR, means "use the scopes on this request". Nil for a regular SAR, means the same as empty.
user: StringUser is optional. If both User and Groups are empty, the current authenticated user is used.
verb: StringVerb is one of: get, list, watch, create, update, delete
Implementations
impl SubjectAccessReview[src]
pub fn create_subject_access_review(
body: &SubjectAccessReview,
optional: CreateOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>[src]
body: &SubjectAccessReview,
optional: CreateOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
create a SubjectAccessReview
Use the returned k8s_openapi::ResponseBody<k8s_openapi::CreateResponse<Self>> constructor, or k8s_openapi::CreateResponse<Self> directly, to parse the HTTP response.
Arguments
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
Trait Implementations
impl Clone for SubjectAccessReview[src]
fn clone(&self) -> SubjectAccessReview[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for SubjectAccessReview[src]
impl Default for SubjectAccessReview[src]
fn default() -> SubjectAccessReview[src]
impl<'de> Deserialize<'de> for SubjectAccessReview[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
impl PartialEq<SubjectAccessReview> for SubjectAccessReview[src]
fn eq(&self, other: &SubjectAccessReview) -> bool[src]
fn ne(&self, other: &SubjectAccessReview) -> bool[src]
impl Resource for SubjectAccessReview[src]
const API_VERSION: &'static str[src]
const GROUP: &'static str[src]
const KIND: &'static str[src]
const VERSION: &'static str[src]
impl Serialize for SubjectAccessReview[src]
impl StructuralPartialEq for SubjectAccessReview[src]
Auto Trait Implementations
impl RefUnwindSafe for SubjectAccessReview
impl Send for SubjectAccessReview
impl Sync for SubjectAccessReview
impl Unpin for SubjectAccessReview
impl UnwindSafe for SubjectAccessReview
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
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, 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>,