Struct openstack::image::ImageQuery
[−]
[src]
pub struct ImageQuery<'session> { /* fields omitted */ }A query to image list.
Methods
impl<'session> ImageQuery<'session>[src]
pub fn sort_by(self, sort: Sort<ImageSortKey>) -> Self[src]
Add sorting to the request.
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 with_name<T: Into<String>>(self, value: T) -> Self[src]
Filter by image name.
pub fn with_status(self, value: ImageStatus) -> Self[src]
Filter by image status.
pub fn with_visibility(self, value: ImageVisibility) -> Self[src]
Filter by visibility.
pub fn into_iter(self) -> ResourceIterator<'session, Image<'session>>[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<Image<'session>>>[src]
Execute this request and return all results.
A convenience shortcut for self.into_iter().collect().
pub fn one(self) -> Result<Image<'session>>[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<'session> Clone for ImageQuery<'session>[src]
fn clone(&self) -> ImageQuery<'session>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<'session> Debug for ImageQuery<'session>[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl<'session> IntoFallibleIterator for ImageQuery<'session>[src]
type Item = Image<'session>
The elements of the iterator.
type Error = Error
The error value of the iterator.
type IntoIter = ResourceIterator<'session, Image<'session>>
The iterator.
fn into_fallible_iterator(self) -> ResourceIterator<'session, Image<'session>>[src]
Creates a fallible iterator from a value.