pub struct HetznerServerTemplateConfig {Show 14 fields
pub image: String,
pub datacenter: HetznerDatacenter,
pub private_network_ids: Vec<I64>,
pub placement_group: I64,
pub enable_public_ipv4: bool,
pub enable_public_ipv6: bool,
pub firewall_ids: Vec<I64>,
pub server_type: HetznerServerType,
pub ssh_keys: Vec<String>,
pub user_data: String,
pub use_public_ip: bool,
pub labels: HashMap<String, String>,
pub volumes: Vec<HetznerVolumeSpecs>,
pub port: i32,
}Expand description
Hetzner server config.
Fields§
§image: StringID or name of the Image the Server is created from
datacenter: HetznerDatacenterID or name of Datacenter to create Server in
private_network_ids: Vec<I64>Network IDs which should be attached to the Server private network interface at the creation time
placement_group: I64ID of the Placement Group the server should be in, Or 0 to not use placement group.
enable_public_ipv4: boolAttach an IPv4 on the public NIC. If false, no IPv4 address will be attached.
enable_public_ipv6: boolAttach an IPv6 on the public NIC. If false, no IPv6 address will be attached.
firewall_ids: Vec<I64>The firewalls to attach to the instance
server_type: HetznerServerTypeID or name of the Server type this Server should be created with
ssh_keys: Vec<String>SSH key IDs ( integer ) or names ( string ) which should be injected into the Server at creation time
user_data: StringCloud-Init user data to use during Server creation. This field is limited to 32KiB.
use_public_ip: boolConnect to the instance using it’s public ip.
labels: HashMap<String, String>Labels for the server
volumes: Vec<HetznerVolumeSpecs>Specs for volumes to attach
port: i32The port periphery will be running on in AMI.
Default: 8120
Implementations§
Trait Implementations§
Source§impl Clone for HetznerServerTemplateConfig
impl Clone for HetznerServerTemplateConfig
Source§fn clone(&self) -> HetznerServerTemplateConfig
fn clone(&self) -> HetznerServerTemplateConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HetznerServerTemplateConfig
impl Debug for HetznerServerTemplateConfig
Source§impl<'de> Deserialize<'de> for HetznerServerTemplateConfig
impl<'de> Deserialize<'de> for HetznerServerTemplateConfig
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>,
Source§impl ExtractData<ServerTemplateConfigVariant, HetznerServerTemplateConfig> for ServerTemplateConfig
impl ExtractData<ServerTemplateConfigVariant, HetznerServerTemplateConfig> for ServerTemplateConfig
fn extract_data( self, variant: &ServerTemplateConfigVariant, ) -> Result<HetznerServerTemplateConfig, Error>
Source§impl From<HetznerServerTemplateConfig> for PartialHetznerServerTemplateConfig
impl From<HetznerServerTemplateConfig> for PartialHetznerServerTemplateConfig
Source§fn from(
value: HetznerServerTemplateConfig,
) -> PartialHetznerServerTemplateConfig
fn from( value: HetznerServerTemplateConfig, ) -> PartialHetznerServerTemplateConfig
Source§impl From<PartialHetznerServerTemplateConfig> for HetznerServerTemplateConfig
impl From<PartialHetznerServerTemplateConfig> for HetznerServerTemplateConfig
Source§fn from(
value: PartialHetznerServerTemplateConfig,
) -> HetznerServerTemplateConfig
fn from( value: PartialHetznerServerTemplateConfig, ) -> HetznerServerTemplateConfig
Source§impl HasPartial for HetznerServerTemplateConfig
impl HasPartial for HetznerServerTemplateConfig
type Partial = PartialHetznerServerTemplateConfig
fn merge_partial(self, partial: Self::Partial) -> HetznerServerTemplateConfig
Source§impl PartialDiff<PartialHetznerServerTemplateConfig, HetznerServerTemplateConfigDiff> for HetznerServerTemplateConfig
impl PartialDiff<PartialHetznerServerTemplateConfig, HetznerServerTemplateConfigDiff> for HetznerServerTemplateConfig
Source§fn partial_diff(
&self,
partial: PartialHetznerServerTemplateConfig,
) -> HetznerServerTemplateConfigDiff
fn partial_diff( &self, partial: PartialHetznerServerTemplateConfig, ) -> HetznerServerTemplateConfigDiff
fn minimize_partial(&self, partial: P) -> P
Auto Trait Implementations§
impl Freeze for HetznerServerTemplateConfig
impl RefUnwindSafe for HetznerServerTemplateConfig
impl Send for HetznerServerTemplateConfig
impl Sync for HetznerServerTemplateConfig
impl Unpin for HetznerServerTemplateConfig
impl UnwindSafe for HetznerServerTemplateConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.