Struct openstack::compute::FlavorQuery
source · pub struct FlavorQuery { /* private fields */ }
Expand description
A query to flavor list.
Implementations
sourceimpl FlavorQuery
impl FlavorQuery
sourcepub fn with_marker<T: Into<String>>(self, marker: T) -> Self
pub fn with_marker<T: Into<String>>(self, marker: T) -> Self
Add marker to the request.
Using this disables automatic pagination.
sourcepub fn with_limit(self, limit: usize) -> Self
pub fn with_limit(self, limit: usize) -> Self
Add limit to the request.
Using this disables automatic pagination.
sourcepub fn detailed(self) -> DetailedFlavorQuery
pub fn detailed(self) -> DetailedFlavorQuery
Convert this query into a detailed query.
sourcepub fn into_iter(self) -> ResourceIterator<FlavorQuery>
pub fn into_iter(self) -> ResourceIterator<FlavorQuery>
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.
sourcepub fn into_iter_detailed(self) -> ResourceIterator<DetailedFlavorQuery>
👎Deprecated since 0.2.0: Use .detailed().into_iter()
pub fn into_iter_detailed(self) -> ResourceIterator<DetailedFlavorQuery>
Convert this query into an iterator executing the request.
This iterator yields full Flavor
objects. If you only need IDs
and/or names, use into_iter
to save bandwidth.
Returns a FallibleIterator
, which is an iterator with each next
call returning a Result
.
Note that no requests are done until you start iterating.
sourcepub fn all(self) -> Result<Vec<FlavorSummary>>
pub fn all(self) -> Result<Vec<FlavorSummary>>
Execute this request and return all results.
A convenience shortcut for self.into_iter().collect()
.
sourcepub fn one(self) -> Result<FlavorSummary>
pub fn one(self) -> Result<FlavorSummary>
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
sourceimpl Clone for FlavorQuery
impl Clone for FlavorQuery
sourcefn clone(&self) -> FlavorQuery
fn clone(&self) -> FlavorQuery
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more