#[non_exhaustive]pub struct AutoscalingConfig {
pub policy_uri: String,
/* private fields */
}Expand description
Autoscaling Policy config associated with the 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.policy_uri: StringOptional. The autoscaling policy used by the cluster.
Only resource names including projectid and location (region) are valid. Examples:
<https://www.googleapis.com/compute/v1/projects/>[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]
Note that the policy must be in the same project and Dataproc region.
Implementations§
Source§impl AutoscalingConfig
impl AutoscalingConfig
pub fn new() -> Self
Sourcepub fn set_policy_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_policy_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of policy_uri.
Trait Implementations§
Source§impl Clone for AutoscalingConfig
impl Clone for AutoscalingConfig
Source§fn clone(&self) -> AutoscalingConfig
fn clone(&self) -> AutoscalingConfig
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 AutoscalingConfig
impl Debug for AutoscalingConfig
Source§impl Default for AutoscalingConfig
impl Default for AutoscalingConfig
Source§fn default() -> AutoscalingConfig
fn default() -> AutoscalingConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AutoscalingConfigwhere
AutoscalingConfig: Default,
impl<'de> Deserialize<'de> for AutoscalingConfigwhere
AutoscalingConfig: 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 AutoscalingConfig
impl Message for AutoscalingConfig
Source§impl PartialEq for AutoscalingConfig
impl PartialEq for AutoscalingConfig
Source§impl Serialize for AutoscalingConfig
impl Serialize for AutoscalingConfig
impl StructuralPartialEq for AutoscalingConfig
Auto Trait Implementations§
impl Freeze for AutoscalingConfig
impl RefUnwindSafe for AutoscalingConfig
impl Send for AutoscalingConfig
impl Sync for AutoscalingConfig
impl Unpin for AutoscalingConfig
impl UnwindSafe for AutoscalingConfig
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