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 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