[][src]Struct openstack::compute::FlavorQuery

pub struct FlavorQuery { /* fields omitted */ }

A query to flavor list.

Implementations

impl FlavorQuery[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 detailed(self) -> DetailedFlavorQuery[src]

Convert this query into a detailed query.

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

Convert this query into an iterator executing the request.

This iterator yields only FlavorSummary objects, containing IDs and names. Use into_iter_detailed for full Flavor objects.

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<FlavorSummary>>[src]

Execute this request and return all results.

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

pub fn one(self) -> Result<FlavorSummary>[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 Clone for FlavorQuery[src]

impl Debug for FlavorQuery[src]

impl IntoFallibleIterator for FlavorQuery[src]

type Item = FlavorSummary

The elements of the iterator.

type Error = Error

The error value of the iterator.

type IntoFallibleIter = ResourceIterator<FlavorQuery>

The iterator.

impl ResourceQuery for FlavorQuery[src]

type Item = FlavorSummary

Item type.

Auto Trait Implementations

impl !RefUnwindSafe for FlavorQuery

impl !Send for FlavorQuery

impl !Sync for FlavorQuery

impl Unpin for FlavorQuery

impl !UnwindSafe for FlavorQuery

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<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 IntoFallibleIter = I

The iterator.

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.