#[non_exhaustive]pub struct GkeNamespace {
pub project_id: String,
pub location: String,
pub cluster_name: String,
pub namespace_name: String,
}Expand description
GKE Namespace. The field names correspond to the resource metadata labels
on monitored resources that fall under a namespace (for example,
k8s_container or k8s_pod).
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.project_id: StringOutput only. The project this resource lives in. For legacy services
migrated from the Custom type, this may be a distinct project from the
one parenting the service itself.
location: StringThe location of the parent cluster. This may be a zone or region.
cluster_name: StringThe name of the parent cluster.
namespace_name: StringThe name of this namespace.
Implementations§
Source§impl GkeNamespace
impl GkeNamespace
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sets the value of project_id.
Sourcepub fn set_location<T: Into<String>>(self, v: T) -> Self
pub fn set_location<T: Into<String>>(self, v: T) -> Self
Sets the value of location.
Sourcepub fn set_cluster_name<T: Into<String>>(self, v: T) -> Self
pub fn set_cluster_name<T: Into<String>>(self, v: T) -> Self
Sets the value of cluster_name.
Sourcepub fn set_namespace_name<T: Into<String>>(self, v: T) -> Self
pub fn set_namespace_name<T: Into<String>>(self, v: T) -> Self
Sets the value of namespace_name.
Trait Implementations§
Source§impl Clone for GkeNamespace
impl Clone for GkeNamespace
Source§fn clone(&self) -> GkeNamespace
fn clone(&self) -> GkeNamespace
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 GkeNamespace
impl Debug for GkeNamespace
Source§impl Default for GkeNamespace
impl Default for GkeNamespace
Source§fn default() -> GkeNamespace
fn default() -> GkeNamespace
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GkeNamespacewhere
GkeNamespace: Default,
impl<'de> Deserialize<'de> for GkeNamespacewhere
GkeNamespace: Default,
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 Message for GkeNamespace
impl Message for GkeNamespace
Source§impl PartialEq for GkeNamespace
impl PartialEq for GkeNamespace
Source§impl Serialize for GkeNamespace
impl Serialize for GkeNamespace
impl StructuralPartialEq for GkeNamespace
Auto Trait Implementations§
impl Freeze for GkeNamespace
impl RefUnwindSafe for GkeNamespace
impl Send for GkeNamespace
impl Sync for GkeNamespace
impl Unpin for GkeNamespace
impl UnwindSafe for GkeNamespace
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