pub struct ScalewayCreateInstanceBuilder { /* private fields */ }

Implementations§

source§

impl ScalewayCreateInstanceBuilder

source

pub fn new( api: ScalewayApi, zone: &str, name: &str, commercial_type: &str ) -> Self

source

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.

source

pub fn routed_ip_enabled( self, routed_ip_enabled: bool ) -> ScalewayCreateInstanceBuilder

If true, configure the Instance so it uses the new routed IP mode.

source

pub fn image(self, image: &str) -> ScalewayCreateInstanceBuilder

Instance image ID.

source

pub fn boot_type(self, boot_type: &str) -> ScalewayCreateInstanceBuilder

Boot type to use.

Possible values: local, bootscript, rescue

source

pub fn bootscript(self, bootscript: &str) -> ScalewayCreateInstanceBuilder

Bootscript ID to use when boot_type is set to bootscript.

source

pub fn enable_ipv6(self, enable_ipv6: bool) -> ScalewayCreateInstanceBuilder

True if IPv6 is enabled on the server.

source

pub fn public_ip(self, public_ip: &str) -> ScalewayCreateInstanceBuilder

ID of the reserved IP to attach to the Instance.

source

pub fn project(self, project: &str) -> ScalewayCreateInstanceBuilder

Instance Project ID.

source

pub fn tags(self, tags: Vec<String>) -> Self

Tags to apply to the instance

source

pub fn security_group( self, security_group: &str ) -> ScalewayCreateInstanceBuilder

Security group ID.

source

pub fn placement_group( self, placement_group: &str ) -> ScalewayCreateInstanceBuilder

Placement group ID if Instance must be part of a placement group.

source

pub async fn run_async(self) -> Result<ScalewayInstance, ScalewayError>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more