#[non_exhaustive]pub struct ServiceNetworking {
pub service: String,
pub deployment: String,
pub disable_pod_overprovisioning: bool,
pub pod_selector_label: String,
/* private fields */
}
Expand description
Information about the Kubernetes Service networking configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.service: String
Required. Name of the Kubernetes Service.
deployment: String
Required. Name of the Kubernetes Deployment whose traffic is managed by the specified Service.
disable_pod_overprovisioning: bool
Optional. Whether to disable Pod overprovisioning. If Pod overprovisioning is disabled then Cloud Deploy will limit the number of total Pods used for the deployment strategy to the number of Pods the Deployment has on the cluster.
pod_selector_label: String
Optional. The label to use when selecting Pods for the Deployment resource. This label must already be present in the Deployment.
Implementations§
Source§impl ServiceNetworking
impl ServiceNetworking
pub fn new() -> Self
Sourcepub fn set_service<T: Into<String>>(self, v: T) -> Self
pub fn set_service<T: Into<String>>(self, v: T) -> Self
Sets the value of service.
Sourcepub fn set_deployment<T: Into<String>>(self, v: T) -> Self
pub fn set_deployment<T: Into<String>>(self, v: T) -> Self
Sets the value of deployment.
Sourcepub fn set_disable_pod_overprovisioning<T: Into<bool>>(self, v: T) -> Self
pub fn set_disable_pod_overprovisioning<T: Into<bool>>(self, v: T) -> Self
Sets the value of disable_pod_overprovisioning.
Sourcepub fn set_pod_selector_label<T: Into<String>>(self, v: T) -> Self
pub fn set_pod_selector_label<T: Into<String>>(self, v: T) -> Self
Sets the value of pod_selector_label.
Trait Implementations§
Source§impl Clone for ServiceNetworking
impl Clone for ServiceNetworking
Source§fn clone(&self) -> ServiceNetworking
fn clone(&self) -> ServiceNetworking
Returns a duplicate 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 ServiceNetworking
impl Debug for ServiceNetworking
Source§impl Default for ServiceNetworking
impl Default for ServiceNetworking
Source§fn default() -> ServiceNetworking
fn default() -> ServiceNetworking
Returns the “default value” for a type. Read more
Source§impl Message for ServiceNetworking
impl Message for ServiceNetworking
Source§impl PartialEq for ServiceNetworking
impl PartialEq for ServiceNetworking
impl StructuralPartialEq for ServiceNetworking
Auto Trait Implementations§
impl Freeze for ServiceNetworking
impl RefUnwindSafe for ServiceNetworking
impl Send for ServiceNetworking
impl Sync for ServiceNetworking
impl Unpin for ServiceNetworking
impl UnwindSafe for ServiceNetworking
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