[−][src]Struct openstack::compute::NewKeyPair
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]
fn clone(&self) -> NewKeyPair
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,