[][src]Struct openstack::compute::KeyPairQuery

pub struct KeyPairQuery { /* fields omitted */ }

A query to server list.

Methods

impl KeyPairQuery[src]

pub fn with_marker<T: Into<String>>(self, marker: T) -> Self[src]

Add marker to the request.

Using this disables automatic pagination.

pub fn with_limit(self, limit: usize) -> Self[src]

Add limit to the request.

Using this disables automatic pagination.

pub fn into_iter(self) -> ResourceIterator<KeyPairQuery>[src]

Convert this query into an iterator executing the request.

Returns a FallibleIterator, which is an iterator with each next call returning a Result.

Note that no requests are done until you start iterating.

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

Execute this request and return all results.

A convenience shortcut for self.into_iter().collect().

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

Return one and exactly one result.

Fails with ResourceNotFound if the query produces no results and with TooManyItems if the query produces more than one result.

Trait Implementations

impl ResourceQuery for KeyPairQuery[src]

type Item = KeyPair

Item type.

fn validate(&mut self) -> Result<()>[src]

Validate the query before the first execution. Read more

impl Clone for KeyPairQuery[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for KeyPairQuery[src]

impl IntoFallibleIterator for KeyPairQuery[src]

type Item = KeyPair

The elements of the iterator.

type Error = Error

The error value of the iterator.

type IntoIter = ResourceIterator<KeyPairQuery>

The iterator.

Auto Trait Implementations

impl !Send for KeyPairQuery

impl !Sync for KeyPairQuery

Blanket Implementations

impl<T> From for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<I> IntoFallibleIterator for I where
    I: FallibleIterator
[src]

type Item = <I as FallibleIterator>::Item

The elements of the iterator.

type Error = <I as FallibleIterator>::Error

The error value of the iterator.

type IntoIter = I

The iterator.

impl<T> Erased for T