#[non_exhaustive]pub struct AnthosCluster {
pub membership: String,
/* private fields */
}
Expand description
Information specifying an Anthos Cluster.
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.membership: String
Optional. Membership of the GKE Hub-registered cluster to which to apply
the Skaffold configuration. Format is
projects/{project}/locations/{location}/memberships/{membership_name}
.
Implementations§
Source§impl AnthosCluster
impl AnthosCluster
pub fn new() -> Self
Sourcepub fn set_membership<T: Into<String>>(self, v: T) -> Self
pub fn set_membership<T: Into<String>>(self, v: T) -> Self
Sets the value of membership.
Trait Implementations§
Source§impl Clone for AnthosCluster
impl Clone for AnthosCluster
Source§fn clone(&self) -> AnthosCluster
fn clone(&self) -> AnthosCluster
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 AnthosCluster
impl Debug for AnthosCluster
Source§impl Default for AnthosCluster
impl Default for AnthosCluster
Source§fn default() -> AnthosCluster
fn default() -> AnthosCluster
Returns the “default value” for a type. Read more
Source§impl Message for AnthosCluster
impl Message for AnthosCluster
Source§impl PartialEq for AnthosCluster
impl PartialEq for AnthosCluster
impl StructuralPartialEq for AnthosCluster
Auto Trait Implementations§
impl Freeze for AnthosCluster
impl RefUnwindSafe for AnthosCluster
impl Send for AnthosCluster
impl Sync for AnthosCluster
impl Unpin for AnthosCluster
impl UnwindSafe for AnthosCluster
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