pub struct ScalewayCreateInstanceBuilder { /* private fields */ }
Implementations§
Source§impl ScalewayCreateInstanceBuilder
impl ScalewayCreateInstanceBuilder
pub fn new( api: ScalewayApi, zone: &str, name: &str, commercial_type: &str, ) -> Self
Sourcepub fn dynamic_ip_required(self, b: bool) -> ScalewayCreateInstanceBuilder
pub fn dynamic_ip_required(self, b: bool) -> ScalewayCreateInstanceBuilder
A positive integer lower or equal to 100 to select the number of items to return.
Sourcepub fn routed_ip_enabled(
self,
routed_ip_enabled: bool,
) -> ScalewayCreateInstanceBuilder
pub fn routed_ip_enabled( self, routed_ip_enabled: bool, ) -> ScalewayCreateInstanceBuilder
If true, configure the Instance so it uses the new routed IP mode.
Sourcepub fn image(self, image: &str) -> ScalewayCreateInstanceBuilder
pub fn image(self, image: &str) -> ScalewayCreateInstanceBuilder
Instance image ID.
Sourcepub fn boot_type(self, boot_type: &str) -> ScalewayCreateInstanceBuilder
pub fn boot_type(self, boot_type: &str) -> ScalewayCreateInstanceBuilder
Boot type to use.
Possible values: local, bootscript, rescue
Sourcepub fn bootscript(self, bootscript: &str) -> ScalewayCreateInstanceBuilder
pub fn bootscript(self, bootscript: &str) -> ScalewayCreateInstanceBuilder
Bootscript ID to use when boot_type is set to bootscript.
Sourcepub fn enable_ipv6(self, enable_ipv6: bool) -> ScalewayCreateInstanceBuilder
pub fn enable_ipv6(self, enable_ipv6: bool) -> ScalewayCreateInstanceBuilder
True if IPv6 is enabled on the server.
Sourcepub fn public_ip(self, public_ip: &str) -> ScalewayCreateInstanceBuilder
pub fn public_ip(self, public_ip: &str) -> ScalewayCreateInstanceBuilder
ID of the reserved IP to attach to the Instance.
Sourcepub fn project(self, project: &str) -> ScalewayCreateInstanceBuilder
pub fn project(self, project: &str) -> ScalewayCreateInstanceBuilder
Instance Project ID.
Tags to apply to the instance
Sourcepub fn security_group(
self,
security_group: &str,
) -> ScalewayCreateInstanceBuilder
pub fn security_group( self, security_group: &str, ) -> ScalewayCreateInstanceBuilder
Security group ID.
Sourcepub fn placement_group(
self,
placement_group: &str,
) -> ScalewayCreateInstanceBuilder
pub fn placement_group( self, placement_group: &str, ) -> ScalewayCreateInstanceBuilder
Placement group ID if Instance must be part of a placement group.
pub async fn run_async(self) -> Result<ScalewayInstance, ScalewayError>
Auto Trait Implementations§
impl Freeze for ScalewayCreateInstanceBuilder
impl RefUnwindSafe for ScalewayCreateInstanceBuilder
impl Send for ScalewayCreateInstanceBuilder
impl Sync for ScalewayCreateInstanceBuilder
impl Unpin for ScalewayCreateInstanceBuilder
impl UnwindSafe for ScalewayCreateInstanceBuilder
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