Struct k8s_openapi::apiextensions_apiserver::pkg::apis::apiextensions::v1::WebhookConversion
source · pub struct WebhookConversion {
pub client_config: Option<WebhookClientConfig>,
pub conversion_review_versions: Vec<String>,
}
Expand description
WebhookConversion describes how to call a conversion webhook
Fields§
§client_config: Option<WebhookClientConfig>
clientConfig is the instructions for how to call the webhook if strategy is Webhook
.
conversion_review_versions: Vec<String>
conversionReviewVersions is an ordered list of preferred ConversionReview
versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail.
Trait Implementations§
source§impl Clone for WebhookConversion
impl Clone for WebhookConversion
source§fn clone(&self) -> WebhookConversion
fn clone(&self) -> WebhookConversion
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WebhookConversion
impl Debug for WebhookConversion
source§impl DeepMerge for WebhookConversion
impl DeepMerge for WebhookConversion
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for WebhookConversion
impl Default for WebhookConversion
source§fn default() -> WebhookConversion
fn default() -> WebhookConversion
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for WebhookConversion
impl<'de> Deserialize<'de> for WebhookConversion
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl JsonSchema for WebhookConversion
impl JsonSchema for WebhookConversion
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(__gen: &mut SchemaGenerator) -> Schema
fn json_schema(__gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for WebhookConversion
impl PartialEq for WebhookConversion
source§impl Serialize for WebhookConversion
impl Serialize for WebhookConversion
impl StructuralPartialEq for WebhookConversion
Auto Trait Implementations§
impl Freeze for WebhookConversion
impl RefUnwindSafe for WebhookConversion
impl Send for WebhookConversion
impl Sync for WebhookConversion
impl Unpin for WebhookConversion
impl UnwindSafe for WebhookConversion
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)