[][src]Struct openstack::compute::NewServer

pub struct NewServer { /* fields omitted */ }

A request to create a server.

Implementations

impl NewServer[src]

pub fn create(self) -> Result<ServerCreationWaiter>[src]

Request creation of the server.

pub fn add_fixed_ip(&mut self, fixed_ip: Ipv4Addr)[src]

Add a virtual NIC with given fixed IP to the new server.

pub fn add_network<N>(&mut self, network: N) where
    N: Into<NetworkRef>, 
[src]

Add a virtual NIC from this network to the new server.

pub fn add_port<P>(&mut self, port: P) where
    P: Into<PortRef>, 
[src]

Add a virtual NIC with this port to the new server.

pub fn metadata(&mut self) -> &mut HashMap<String, String>[src]

Metadata assigned to this server.

pub fn nics(&mut self) -> &mut Vec<ServerNIC>[src]

NICs to attach to this server.

pub fn block_devices(&mut self) -> &mut Vec<BlockDevice>[src]

Block devices attached to the server.

pub fn set_image<I>(&mut self, image: I) where
    I: Into<ImageRef>, 
[src]

Use this image as a source for the new server.

pub fn set_keypair<K>(&mut self, keypair: K) where
    K: Into<KeyPairRef>, 
[src]

Use this key pair for the new server.

pub fn set_availability_zone<A>(&mut self, availability_zone: A) where
    A: Into<String>, 
[src]

Use this availability_zone for the new server.

pub fn with_block_device(self, block_device: BlockDevice) -> Self[src]

Add a block device to attach to the server.

pub fn with_boot_volume<V>(self, volume: V) -> Self where
    V: Into<VolumeRef>, 
[src]

Add a volume to boot from.

pub fn with_fixed_ip(self, fixed_ip: Ipv4Addr) -> NewServer[src]

Add a virtual NIC with given fixed IP to the new server.

pub fn with_image<I>(self, image: I) -> NewServer where
    I: Into<ImageRef>, 
[src]

Use this image as a source for the new server.

pub fn with_keypair<K>(self, keypair: K) -> NewServer where
    K: Into<KeyPairRef>, 
[src]

Use this key pair for the new server.

pub fn with_availability_zone<K>(self, availability_zone: K) -> NewServer where
    K: Into<String>, 
[src]

Use this availability zone for the new server.

pub fn with_metadata<S1, S2>(self, key: S1, value: S2) -> NewServer where
    S1: Into<String>,
    S2: Into<String>, 
[src]

Add an arbitrary key/value metadata pair.

pub fn with_network<N>(self, network: N) -> NewServer where
    N: Into<NetworkRef>, 
[src]

Add a virtual NIC from this network to the new server.

pub fn with_new_boot_volume<I>(self, image: I, size_gib: u32) -> Self where
    I: Into<ImageRef>, 
[src]

Create a volume to boot from from an image.

pub fn with_port<P>(self, port: P) -> NewServer where
    P: Into<PortRef>, 
[src]

Add a virtual NIC with this port to the new server.

pub fn set_user_data<S: Into<String>>(&mut self, value: S)[src]

Use this user-data for the new server.

pub fn with_user_data<S: Into<String>>(self, value: S) -> Self[src]

Use this user-data for the new server.

pub fn set_config_drive(&mut self, value: bool)[src]

Enable/disable config-drive for the new server.

pub fn with_config_drive(self, value: bool) -> Self[src]

Enable/disable config-drive for the new server.

Trait Implementations

impl Debug for NewServer[src]

Auto Trait Implementations

impl !RefUnwindSafe for NewServer

impl !Send for NewServer

impl !Sync for NewServer

impl Unpin for NewServer

impl !UnwindSafe for NewServer

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.