#[non_exhaustive]pub struct EnterpriseConfig {
pub cluster_tier: ClusterTier,
pub desired_tier: ClusterTier,
}Expand description
EnterpriseConfig is the cluster enterprise 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.cluster_tier: ClusterTierOutput only. cluster_tier indicates the effective tier of the cluster.
desired_tier: ClusterTierdesired_tier specifies the desired tier of the cluster.
Implementations§
Source§impl EnterpriseConfig
impl EnterpriseConfig
Sourcepub fn set_cluster_tier<T: Into<ClusterTier>>(self, v: T) -> Self
pub fn set_cluster_tier<T: Into<ClusterTier>>(self, v: T) -> Self
Sets the value of cluster_tier.
Sourcepub fn set_desired_tier<T: Into<ClusterTier>>(self, v: T) -> Self
pub fn set_desired_tier<T: Into<ClusterTier>>(self, v: T) -> Self
Sets the value of desired_tier.
Trait Implementations§
Source§impl Clone for EnterpriseConfig
impl Clone for EnterpriseConfig
Source§fn clone(&self) -> EnterpriseConfig
fn clone(&self) -> EnterpriseConfig
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 EnterpriseConfig
impl Debug for EnterpriseConfig
Source§impl Default for EnterpriseConfig
impl Default for EnterpriseConfig
Source§fn default() -> EnterpriseConfig
fn default() -> EnterpriseConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EnterpriseConfigwhere
EnterpriseConfig: Default,
impl<'de> Deserialize<'de> for EnterpriseConfigwhere
EnterpriseConfig: 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 EnterpriseConfig
impl Message for EnterpriseConfig
Source§impl PartialEq for EnterpriseConfig
impl PartialEq for EnterpriseConfig
Source§impl Serialize for EnterpriseConfig
impl Serialize for EnterpriseConfig
impl StructuralPartialEq for EnterpriseConfig
Auto Trait Implementations§
impl Freeze for EnterpriseConfig
impl RefUnwindSafe for EnterpriseConfig
impl Send for EnterpriseConfig
impl Sync for EnterpriseConfig
impl Unpin for EnterpriseConfig
impl UnwindSafe for EnterpriseConfig
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