[][src]Struct k8s_openapi::api::policy::v1beta1::Eviction

pub struct Eviction {
    pub delete_options: Option<DeleteOptions>,
    pub metadata: ObjectMeta,
}

Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods/<pod name>/evictions.

Fields

delete_options: Option<DeleteOptions>

DeleteOptions may be provided

metadata: ObjectMeta

ObjectMeta describes the pod that is being evicted.

Implementations

impl Eviction[src]

pub fn create_namespaced_pod_eviction(
    name: &str,
    namespace: &str,
    body: &Eviction,
    optional: CreateOptional<'_>
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
[src]

create eviction of a Pod

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

Arguments

  • name

    name of the Eviction

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

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

Trait Implementations

impl Clone for Eviction[src]

impl Debug for Eviction[src]

impl Default for Eviction[src]

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

impl Metadata for Eviction[src]

type Ty = ObjectMeta

The type of the metadata object.

impl PartialEq<Eviction> for Eviction[src]

impl Resource for Eviction[src]

impl Serialize for Eviction[src]

impl StructuralPartialEq for Eviction[src]

Auto Trait Implementations

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.