Struct gapi_grpc::google::container::v1alpha1::NodeTaint[][src]

pub struct NodeTaint {
    pub key: String,
    pub value: String,
    pub effect: i32,
}

Kubernetes taint is comprised of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.

For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/

Fields

key: String

Key for taint.

value: String

Value for taint.

effect: i32

Effect for taint.

Implementations

impl NodeTaint[src]

pub fn effect(&self) -> Effect[src]

Returns the enum value of effect, or the default if the field is set to an invalid enum value.

pub fn set_effect(&mut self, value: Effect)[src]

Sets effect to the provided enum value.

Trait Implementations

impl Clone for NodeTaint[src]

impl Debug for NodeTaint[src]

impl Default for NodeTaint[src]

impl Message for NodeTaint[src]

impl PartialEq<NodeTaint> for NodeTaint[src]

impl StructuralPartialEq for NodeTaint[src]

Auto Trait Implementations

impl RefUnwindSafe for NodeTaint

impl Send for NodeTaint

impl Sync for NodeTaint

impl Unpin for NodeTaint

impl UnwindSafe for NodeTaint

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> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]