Struct openstack::image::ImageQuery
source · pub struct ImageQuery { /* private fields */ }
Expand description
A query to image list.
Implementations
sourceimpl ImageQuery
impl ImageQuery
sourcepub fn sort_by(self, sort: Sort<ImageSortKey>) -> Self
pub fn sort_by(self, sort: Sort<ImageSortKey>) -> Self
Add sorting to the request.
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 with_status(self, value: ImageStatus) -> Self
pub fn with_status(self, value: ImageStatus) -> Self
Filter by image status.
sourcepub fn with_visibility(self, value: ImageVisibility) -> Self
pub fn with_visibility(self, value: ImageVisibility) -> Self
Filter by visibility.
sourcepub fn into_iter(self) -> ResourceIterator<ImageQuery>
pub fn into_iter(self) -> ResourceIterator<ImageQuery>
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.
Trait Implementations
sourceimpl Clone for ImageQuery
impl Clone for ImageQuery
sourcefn clone(&self) -> ImageQuery
fn clone(&self) -> ImageQuery
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ImageQuery
impl Debug for ImageQuery
sourceimpl IntoFallibleIterator for ImageQuery
impl IntoFallibleIterator for ImageQuery
type IntoIter = ResourceIterator<ImageQuery>
type IntoIter = ResourceIterator<ImageQuery>
The iterator.
sourcefn into_fallible_iterator(self) -> Self::IntoIter
fn into_fallible_iterator(self) -> Self::IntoIter
Creates a fallible iterator from a value.
sourceimpl ResourceQuery for ImageQuery
impl ResourceQuery for ImageQuery
sourceconst DEFAULT_LIMIT: usize = 50usize
const DEFAULT_LIMIT: usize = 50usize
Default limit to use with this query.
sourcefn can_paginate(&self) -> Result<bool>
fn can_paginate(&self) -> Result<bool>
Whether pagination is supported for this query.
sourcefn extract_marker(&self, resource: &Self::Item) -> String
fn extract_marker(&self, resource: &Self::Item) -> String
Extract a marker from a resource.
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more