Struct openstack::network::NetworkQuery
source · pub struct NetworkQuery { /* private fields */ }
Expand description
A query to network list.
Implementations
sourceimpl NetworkQuery
impl NetworkQuery
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 sort_by(self, sort: Sort<NetworkSortKey>) -> Self
pub fn sort_by(self, sort: Sort<NetworkSortKey>) -> Self
Add sorting to the request.
sourcepub fn with_name<T: Into<String>>(self, value: T) -> Self
pub fn with_name<T: Into<String>>(self, value: T) -> Self
Filter by network name (a database regular expression).
sourcepub fn into_iter(self) -> ResourceIterator<NetworkQuery>
pub fn into_iter(self) -> ResourceIterator<NetworkQuery>
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 NetworkQuery
impl Clone for NetworkQuery
sourcefn clone(&self) -> NetworkQuery
fn clone(&self) -> NetworkQuery
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 NetworkQuery
impl Debug for NetworkQuery
sourceimpl IntoFallibleIterator for NetworkQuery
impl IntoFallibleIterator for NetworkQuery
type IntoIter = ResourceIterator<NetworkQuery>
type IntoIter = ResourceIterator<NetworkQuery>
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 NetworkQuery
impl ResourceQuery for NetworkQuery
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 NetworkQuery
impl !Send for NetworkQuery
impl !Sync for NetworkQuery
impl Unpin for NetworkQuery
impl !UnwindSafe for NetworkQuery
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