pub struct PoolCreate {
pub auto_scale: Option<bool>,
pub cluster_id: Option<String>,
pub count: Option<i32>,
pub max_nodes: Option<i32>,
pub min_nodes: Option<i32>,
pub name: Option<String>,
pub provider: Option<String>,
pub size: Option<String>,
}Fields§
§auto_scale: Option<bool>AutoScale turns the provider’s cluster autoscaler on for this pool.
cluster_id: Option<String>ClusterID is the cluster to add the pool to, from the URL path.
count: Option<i32>Count is how many nodes the pool starts with.
max_nodes: Option<i32>MaxNodes is the ceiling the autoscaler may not grow the pool past, and so the bound on what this pool can spend. Ignored unless AutoScale is set.
min_nodes: Option<i32>MinNodes is the floor the autoscaler may not shrink the pool below. Ignored unless AutoScale is set.
name: Option<String>Name is the pool’s name.
provider: Option<String>Provider is the cloud the cluster lives on (e.g. "digitalocean"). Required — Visor routes the create by it. Accepted from the body or ?provider=.
size: Option<String>Size is the provider size slug for each node (e.g. "s-4vcpu-8gb").
Implementations§
Source§impl PoolCreate
impl PoolCreate
pub fn new() -> PoolCreate
Trait Implementations§
Source§impl Clone for PoolCreate
impl Clone for PoolCreate
Source§fn clone(&self) -> PoolCreate
fn clone(&self) -> PoolCreate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PoolCreate
impl Debug for PoolCreate
Source§impl Default for PoolCreate
impl Default for PoolCreate
Source§fn default() -> PoolCreate
fn default() -> PoolCreate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PoolCreate
impl<'de> Deserialize<'de> for PoolCreate
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 PartialEq for PoolCreate
impl PartialEq for PoolCreate
Source§impl Serialize for PoolCreate
impl Serialize for PoolCreate
impl StructuralPartialEq for PoolCreate
Auto Trait Implementations§
impl Freeze for PoolCreate
impl RefUnwindSafe for PoolCreate
impl Send for PoolCreate
impl Sync for PoolCreate
impl Unpin for PoolCreate
impl UnsafeUnpin for PoolCreate
impl UnwindSafe for PoolCreate
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