[][src]Struct k8s_openapi::api::admissionregistration::v1alpha1::Initializer

pub struct Initializer {
    pub name: String,
    pub rules: Option<Vec<Rule>>,
}

Initializer describes the name and the failure policy of an initializer, and what resources it applies to.

Fields

name: String

Name is the identifier of the initializer. It will be added to the object that needs to be initialized. Name should be fully qualified, e.g., alwayspullimages.kubernetes.io, where "alwayspullimages" is the name of the webhook, and kubernetes.io is the name of the organization. Required

rules: Option<Vec<Rule>>

Rules describes what resources/subresources the initializer cares about. The initializer cares about an operation if it matches any Rule. Rule.Resources must not include subresources.

Trait Implementations

impl Clone for Initializer[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<Initializer> for Initializer[src]

impl Default for Initializer[src]

impl Debug for Initializer[src]

impl Serialize for Initializer[src]

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

Auto Trait Implementations

impl Send for Initializer

impl Sync for Initializer

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]