[][src]Struct openstack::compute::NewKeyPair

pub struct NewKeyPair { /* fields omitted */ }

A request to create a key pair.

Implementations

impl NewKeyPair[src]

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

Request creation of a key pair.

This call fails immediately if no public_key is provided.

pub fn generate(self) -> Result<(KeyPair, String)>[src]

Create a key pair, generating its public key.

Returns a new key pair and its private key.

pub fn set_key_type(&mut self, value: KeyPairType)[src]

Set type of the key pair.

pub fn with_key_type(self, value: KeyPairType) -> Self[src]

Set type of the key pair.

pub fn set_name(&mut self, value: String)[src]

Set name of the key pair.

pub fn with_name(self, value: String) -> Self[src]

Set name of the key pair.

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

Set name of the key pair.

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

Set name of the key pair.

Trait Implementations

impl Clone for NewKeyPair[src]

impl Debug for NewKeyPair[src]

Auto Trait Implementations

impl !RefUnwindSafe for NewKeyPair

impl !Send for NewKeyPair

impl !Sync for NewKeyPair

impl Unpin for NewKeyPair

impl !UnwindSafe for NewKeyPair

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.