pub struct UserIdentityMapping {
pub identity: Option<ObjectReference>,
pub metadata: ObjectMeta,
pub user: Option<ObjectReference>,
}
Expand description
UserIdentityMapping maps a user to an identity
Fields§
§identity: Option<ObjectReference>
Identity is a reference to an identity
metadata: ObjectMeta
Standard object’s metadata.
user: Option<ObjectReference>
User is a reference to a user
Implementations§
Source§impl UserIdentityMapping
impl UserIdentityMapping
Sourcepub fn create_user_identity_mapping(
body: &UserIdentityMapping,
optional: CreateOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
pub fn create_user_identity_mapping( body: &UserIdentityMapping, optional: CreateOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
create an UserIdentityMapping
Use the returned k8s_openapi::ResponseBody
<
k8s_openapi::CreateResponse
<Self>>
constructor, or k8s_openapi::CreateResponse
<Self>
directly, to parse the HTTP response.
§Arguments
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Source§impl UserIdentityMapping
impl UserIdentityMapping
Sourcepub fn delete_user_identity_mapping(
name: &str,
optional: DeleteOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<DeleteResponse<Self>>), RequestError>
pub fn delete_user_identity_mapping( name: &str, optional: DeleteOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<DeleteResponse<Self>>), RequestError>
delete an UserIdentityMapping
Use the returned k8s_openapi::ResponseBody
<
k8s_openapi::DeleteResponse
<Self>>
constructor, or k8s_openapi::DeleteResponse
<Self>
directly, to parse the HTTP response.
§Arguments
-
name
name of the UserIdentityMapping
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Source§impl UserIdentityMapping
impl UserIdentityMapping
Sourcepub fn patch_user_identity_mapping(
name: &str,
body: &Patch,
optional: PatchOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<PatchResponse<Self>>), RequestError>
pub fn patch_user_identity_mapping( name: &str, body: &Patch, optional: PatchOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<PatchResponse<Self>>), RequestError>
partially update the specified UserIdentityMapping
Use the returned k8s_openapi::ResponseBody
<
k8s_openapi::PatchResponse
<Self>>
constructor, or k8s_openapi::PatchResponse
<Self>
directly, to parse the HTTP response.
§Arguments
-
name
name of the UserIdentityMapping
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Source§impl UserIdentityMapping
impl UserIdentityMapping
Sourcepub fn read_user_identity_mapping(
name: &str,
optional: ReadUserIdentityMappingOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ReadUserIdentityMappingResponse>), RequestError>
pub fn read_user_identity_mapping( name: &str, optional: ReadUserIdentityMappingOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ReadUserIdentityMappingResponse>), RequestError>
read the specified UserIdentityMapping
Use the returned k8s_openapi::ResponseBody
<
ReadUserIdentityMappingResponse
>
constructor, or ReadUserIdentityMappingResponse
directly, to parse the HTTP response.
§Arguments
-
name
name of the UserIdentityMapping
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Source§impl UserIdentityMapping
impl UserIdentityMapping
Sourcepub fn replace_user_identity_mapping(
name: &str,
body: &UserIdentityMapping,
optional: ReplaceOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ReplaceResponse<Self>>), RequestError>
pub fn replace_user_identity_mapping( name: &str, body: &UserIdentityMapping, optional: ReplaceOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ReplaceResponse<Self>>), RequestError>
replace the specified UserIdentityMapping
Use the returned k8s_openapi::ResponseBody
<
k8s_openapi::ReplaceResponse
<Self>>
constructor, or k8s_openapi::ReplaceResponse
<Self>
directly, to parse the HTTP response.
§Arguments
-
name
name of the UserIdentityMapping
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Trait Implementations§
Source§impl Clone for UserIdentityMapping
impl Clone for UserIdentityMapping
Source§fn clone(&self) -> UserIdentityMapping
fn clone(&self) -> UserIdentityMapping
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for UserIdentityMapping
impl Debug for UserIdentityMapping
Source§impl Default for UserIdentityMapping
impl Default for UserIdentityMapping
Source§fn default() -> UserIdentityMapping
fn default() -> UserIdentityMapping
Source§impl<'de> Deserialize<'de> for UserIdentityMapping
impl<'de> Deserialize<'de> for UserIdentityMapping
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>,
Source§impl Metadata for UserIdentityMapping
impl Metadata for UserIdentityMapping
Source§impl PartialEq for UserIdentityMapping
impl PartialEq for UserIdentityMapping
Source§impl Resource for UserIdentityMapping
impl Resource for UserIdentityMapping
Source§const API_VERSION: &'static str = "user.openshift.io/v1"
const API_VERSION: &'static str = "user.openshift.io/v1"
Resource::GROUP
and Resource::VERSION
(eg "apiextensions.k8s.io/v1beta1"
)
or just the version for resources without a group (eg "v1"
). Read more