[−][src]Struct openstack::image::ImageQuery
A query to image list.
Implementations
impl ImageQuery
[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<T: Into<ImageStatus>>(self, value: T) -> Self
[src][−]
Filter by image status.
pub fn with_visibility<T: Into<ImageVisibility>>(self, value: T) -> Self
[src][−]
Filter by visibility.
pub fn into_iter(self) -> ResourceIterator<ImageQuery>
[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>>
[src][−]
Execute this request and return all results.
A convenience shortcut for self.into_iter().collect()
.
pub fn one(self) -> Result<Image>
[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 ImageQuery
[src][+]
impl Debug for ImageQuery
[src][+]
impl IntoFallibleIterator for ImageQuery
[src][+]
impl ResourceQuery for ImageQuery
[src][+]
Auto Trait Implementations
impl !RefUnwindSafe for ImageQuery
impl !Send for ImageQuery
impl !Sync for ImageQuery
impl Unpin for ImageQuery
impl !UnwindSafe for ImageQuery
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,
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][+]
U: From<T>,
impl<I> IntoFallibleIterator for I where
I: FallibleIterator,
[src][+]
I: FallibleIterator,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,