Struct google_container1::api::PlacementPolicy
source · pub struct PlacementPolicy {
pub policy_name: Option<String>,
pub tpu_topology: Option<String>,
pub type_: Option<String>,
}
Expand description
PlacementPolicy defines the placement policy used by the node pool.
This type is not used in any activity, and only used as part of another schema.
Fields§
§policy_name: Option<String>
If set, refers to the name of a custom resource policy supplied by the user. The resource policy must be in the same project and region as the node pool. If not found, InvalidArgument error is returned.
tpu_topology: Option<String>
Optional. TPU placement topology for pod slice node pool. https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
type_: Option<String>
The type of placement.
Trait Implementations§
source§impl Clone for PlacementPolicy
impl Clone for PlacementPolicy
source§fn clone(&self) -> PlacementPolicy
fn clone(&self) -> PlacementPolicy
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 PlacementPolicy
impl Debug for PlacementPolicy
source§impl Default for PlacementPolicy
impl Default for PlacementPolicy
source§fn default() -> PlacementPolicy
fn default() -> PlacementPolicy
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PlacementPolicy
impl<'de> Deserialize<'de> for PlacementPolicy
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 Serialize for PlacementPolicy
impl Serialize for PlacementPolicy
impl Part for PlacementPolicy
Auto Trait Implementations§
impl RefUnwindSafe for PlacementPolicy
impl Send for PlacementPolicy
impl Sync for PlacementPolicy
impl Unpin for PlacementPolicy
impl UnwindSafe for PlacementPolicy
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