#[non_exhaustive]pub struct GKEWorkload {
pub cluster: String,
pub deployment: String,
/* private fields */
}Expand description
GKEWorkload represents the Google Kubernetes Engine runtime.
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.cluster: StringRequired. Immutable. The name of the GKE cluster.
Format:
projects/{project}/locations/{location}/clusters/{cluster}.
deployment: StringOutput only. The name of the GKE deployment.
Format:
projects/{project}/locations/{location}/clusters/{cluster}/namespaces/{namespace}/deployments/{deployment}.
Implementations§
Source§impl GKEWorkload
impl GKEWorkload
pub fn new() -> Self
Sourcepub fn set_cluster<T: Into<String>>(self, v: T) -> Self
pub fn set_cluster<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_deployment<T: Into<String>>(self, v: T) -> Self
pub fn set_deployment<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for GKEWorkload
impl Clone for GKEWorkload
Source§fn clone(&self) -> GKEWorkload
fn clone(&self) -> GKEWorkload
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 GKEWorkload
impl Debug for GKEWorkload
Source§impl Default for GKEWorkload
impl Default for GKEWorkload
Source§fn default() -> GKEWorkload
fn default() -> GKEWorkload
Returns the “default value” for a type. Read more
Source§impl Message for GKEWorkload
impl Message for GKEWorkload
Source§impl PartialEq for GKEWorkload
impl PartialEq for GKEWorkload
impl StructuralPartialEq for GKEWorkload
Auto Trait Implementations§
impl Freeze for GKEWorkload
impl RefUnwindSafe for GKEWorkload
impl Send for GKEWorkload
impl Sync for GKEWorkload
impl Unpin for GKEWorkload
impl UnwindSafe for GKEWorkload
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