pub struct ServerGroup {
pub name: String,
pub role: ServerRole,
pub server_type: String,
pub location: String,
pub count: u32,
pub labels: HashMap<String, String>,
pub ssh_keys: Vec<String>,
pub image: Option<String>,
}Expand description
Server group defining a set of similar servers
Fields§
§name: StringUnique name for this server group
role: ServerRoleRole/purpose of this server group
server_type: StringServer type (e.g., “cx11”, “cpx21” for Hetzner)
location: StringLocation/region (e.g., “nbg1”, “fsn1” for Hetzner)
count: u32Number of servers in this group
labels: HashMap<String, String>Labels for organization and selection
ssh_keys: Vec<String>SSH key names or IDs
image: Option<String>Image/OS to use (optional, defaults to provider default)
Trait Implementations§
Source§impl Clone for ServerGroup
impl Clone for ServerGroup
Source§fn clone(&self) -> ServerGroup
fn clone(&self) -> ServerGroup
Returns a duplicate 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 ServerGroup
impl Debug for ServerGroup
Source§impl<'de> Deserialize<'de> for ServerGroup
impl<'de> Deserialize<'de> for ServerGroup
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 ServerGroup
impl Serialize for ServerGroup
Source§impl Validate for ServerGroup
impl Validate for ServerGroup
Source§impl<'v_a> ValidateArgs<'v_a> for ServerGroup
impl<'v_a> ValidateArgs<'v_a> for ServerGroup
Auto Trait Implementations§
impl Freeze for ServerGroup
impl RefUnwindSafe for ServerGroup
impl Send for ServerGroup
impl Sync for ServerGroup
impl Unpin for ServerGroup
impl UnwindSafe for ServerGroup
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