[−][src]Struct openstack::compute::NewServer
A request to create a server.
Methods
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]
N: Into<NetworkRef>,
Add a virtual NIC from this network to the new server.
pub fn add_nic(&mut self, nic: ServerNIC)[src]
Use nics().push
Add a virtual NIC to the new server.
pub fn add_port<P>(&mut self, port: P) where
P: Into<PortRef>, [src]
P: Into<PortRef>,
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]
I: Into<ImageRef>,
Use this image as a source for the new server.
pub fn set_keypair<K>(&mut self, keypair: K) where
K: Into<KeyPairRef>, [src]
K: Into<KeyPairRef>,
Use this key pair 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]
V: Into<VolumeRef>,
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]
I: Into<ImageRef>,
Use this image as a source for the new server.
pub fn with_keypair<K>(self, keypair: K) -> NewServer where
K: Into<KeyPairRef>, [src]
K: Into<KeyPairRef>,
Use this key pair for the new server.
pub fn with_metadata<S1, S2>(self, key: S1, value: S2) -> NewServer where
S1: Into<String>,
S2: Into<String>, [src]
S1: Into<String>,
S2: Into<String>,
Add an arbitrary key/value metadata pair.
pub fn with_network<N>(self, network: N) -> NewServer where
N: Into<NetworkRef>, [src]
N: Into<NetworkRef>,
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]
I: Into<ImageRef>,
Create a volume to boot from from an image.
pub fn with_port<P>(self, port: P) -> NewServer where
P: Into<PortRef>, [src]
P: Into<PortRef>,
Add a virtual NIC with this port to the new server.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.