Struct openstack::image::ImageQuery
source · pub struct ImageQuery { /* private fields */ }
Expand description
A query to image list.
Implementations§
source§impl 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<T: Into<ImageStatus>>(self, value: T) -> Self
pub fn with_status<T: Into<ImageStatus>>(self, value: T) -> Self
Filter by image status.
sourcepub fn with_visibility<T: Into<ImageVisibility>>(self, value: T) -> Self
pub fn with_visibility<T: Into<ImageVisibility>>(self, value: T) -> Self
Filter by visibility.
sourcepub fn into_stream(
self
) -> impl Stream<Item = Result<<ImageQuery as ResourceQuery>::Item>>
pub fn into_stream( self ) -> impl Stream<Item = Result<<ImageQuery as ResourceQuery>::Item>>
Convert this query into a stream executing the request.
Returns a TryStream
, which is a stream with each next
call returning a Result
.
Note that no requests are done until you start iterating.
Trait Implementations§
source§impl Clone for ImageQuery
impl Clone for ImageQuery
source§fn clone(&self) -> ImageQuery
fn clone(&self) -> ImageQuery
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ImageQuery
impl Debug for ImageQuery
source§impl ResourceQuery for ImageQuery
impl ResourceQuery for ImageQuery
source§const DEFAULT_LIMIT: usize = 50usize
const DEFAULT_LIMIT: usize = 50usize
Default limit to use with this query.
source§fn can_paginate<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn can_paginate<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Whether pagination is supported for this query.
source§fn extract_marker(&self, resource: &Self::Item) -> String
fn extract_marker(&self, resource: &Self::Item) -> String
Extract a marker from a resource.