[][src]Struct openshift_openapi::api::user::v1::Group

pub struct Group {
    pub metadata: Option<ObjectMeta>,
    pub users: Vec<String>,
}

Group represents a referenceable set of Users

Fields

metadata: Option<ObjectMeta>

Standard object's metadata.

users: Vec<String>

Users is the list of users in this group.

Implementations

impl Group[src]

pub fn create_group(
    body: &Group,
    optional: CreateOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
[src]

create a Group

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.

impl Group[src]

pub fn delete_collection_group(
    delete_optional: DeleteOptional,
    list_optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteResponse<List<Self>>>), RequestError>
[src]

delete collection of Group

Use the returned k8s_openapi::ResponseBody<k8s_openapi::DeleteResponse<k8s_openapi::List<Self>>> constructor, or k8s_openapi::DeleteResponse<k8s_openapi::List<Self>> directly, to parse the HTTP response.

Arguments

  • delete_optional

    Delete options. Use Default::default() to not pass any.

  • list_optional

    List options. Use Default::default() to not pass any.

impl Group[src]

pub fn delete_group(
    name: &str,
    optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteResponse<Self>>), RequestError>
[src]

delete a Group

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 Group

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Group[src]

pub fn list_group(
    optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListResponse<Self>>), RequestError>
[src]

list or watch objects of kind Group

This operation only supports listing all items of this type.

Use the returned k8s_openapi::ResponseBody<k8s_openapi::ListResponse<Self>> constructor, or k8s_openapi::ListResponse<Self> directly, to parse the HTTP response.

Arguments

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Group[src]

pub fn patch_group(
    name: &str,
    body: &Patch,
    optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchResponse<Self>>), RequestError>
[src]

partially update the specified Group

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 Group

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Group[src]

pub fn read_group(
    name: &str,
    optional: ReadGroupOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadGroupResponse>), RequestError>
[src]

read the specified Group

Use the returned k8s_openapi::ResponseBody<ReadGroupResponse> constructor, or ReadGroupResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the Group

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Group[src]

pub fn replace_group(
    name: &str,
    body: &Group,
    optional: ReplaceOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceResponse<Self>>), RequestError>
[src]

replace the specified Group

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 Group

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Group[src]

pub fn watch_group(
    optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchResponse<Self>>), RequestError>
[src]

list or watch objects of kind Group

This operation only supports watching one item, or a list of items, of this type for changes.

Use the returned k8s_openapi::ResponseBody<k8s_openapi::WatchResponse<Self>> constructor, or k8s_openapi::WatchResponse<Self> directly, to parse the HTTP response.

Arguments

  • optional

    Optional parameters. Use Default::default() to not pass any.

Trait Implementations

impl Clone for Group[src]

impl Debug for Group[src]

impl Default for Group[src]

impl<'de> Deserialize<'de> for Group[src]

impl ListableResource for Group[src]

impl Metadata for Group[src]

type Ty = ObjectMeta

The type of the metadata object.

impl PartialEq<Group> for Group[src]

impl Resource for Group[src]

impl Serialize for Group[src]

impl StructuralPartialEq for Group[src]

Auto Trait Implementations

impl RefUnwindSafe for Group

impl Send for Group

impl Sync for Group

impl Unpin for Group

impl UnwindSafe for Group

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.