Struct openstack::network::SubnetQuery
source · pub struct SubnetQuery { /* private fields */ }
Expand description
A query to subnet list.
Implementations§
source§impl SubnetQuery
impl SubnetQuery
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<SubnetSortKey>) -> Self
pub fn sort_by(self, sort: Sort<SubnetSortKey>) -> Self
Add sorting to the request.
sourcepub fn set_description<T: Into<String>>(&mut self, value: T)
pub fn set_description<T: Into<String>>(&mut self, value: T)
Filter by description.
sourcepub fn with_description<T: Into<String>>(self, value: T) -> Self
pub fn with_description<T: Into<String>>(self, value: T) -> Self
Filter by description.
sourcepub fn set_dhcp_enabled<T: Into<bool>>(&mut self, value: T)
pub fn set_dhcp_enabled<T: Into<bool>>(&mut self, value: T)
Filter by whether DHCP is enabled.
sourcepub fn with_dhcp_enabled<T: Into<bool>>(self, value: T) -> Self
pub fn with_dhcp_enabled<T: Into<bool>>(self, value: T) -> Self
Filter by whether DHCP is enabled.
sourcepub fn set_gateway_ip<T: Into<IpAddr>>(&mut self, value: T)
pub fn set_gateway_ip<T: Into<IpAddr>>(&mut self, value: T)
Filter by gateway IP.
sourcepub fn with_gateway_ip<T: Into<IpAddr>>(self, value: T) -> Self
pub fn with_gateway_ip<T: Into<IpAddr>>(self, value: T) -> Self
Filter by gateway IP.
sourcepub fn set_ipv6_address_mode<T: Into<Ipv6Mode>>(&mut self, value: T)
pub fn set_ipv6_address_mode<T: Into<Ipv6Mode>>(&mut self, value: T)
Filter by IPv6 address assignment mode.
sourcepub fn with_ipv6_address_mode<T: Into<Ipv6Mode>>(self, value: T) -> Self
pub fn with_ipv6_address_mode<T: Into<Ipv6Mode>>(self, value: T) -> Self
Filter by IPv6 address assignment mode.
sourcepub fn set_ipv6_router_advertisement_mode<T: Into<Ipv6Mode>>(&mut self, value: T)
pub fn set_ipv6_router_advertisement_mode<T: Into<Ipv6Mode>>(&mut self, value: T)
Filter by IPv6 router advertisement mode.
sourcepub fn with_ipv6_router_advertisement<T: Into<Ipv6Mode>>(self, value: T) -> Self
pub fn with_ipv6_router_advertisement<T: Into<Ipv6Mode>>(self, value: T) -> Self
Filter by IPv6 router advertisement mode.
sourcepub fn set_network<N: Into<NetworkRef>>(&mut self, value: N)
pub fn set_network<N: Into<NetworkRef>>(&mut self, value: N)
Filter by network.
sourcepub fn with_network<N: Into<NetworkRef>>(self, value: N) -> Self
pub fn with_network<N: Into<NetworkRef>>(self, value: N) -> Self
Filter by network.
sourcepub fn into_stream(self) -> impl Stream<Item = Result<Subnet>>
pub fn into_stream(self) -> impl Stream<Item = Result<Subnet>>
Convert this query into an 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 SubnetQuery
impl Clone for SubnetQuery
source§fn clone(&self) -> SubnetQuery
fn clone(&self) -> SubnetQuery
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 SubnetQuery
impl Debug for SubnetQuery
source§impl ResourceQuery for SubnetQuery
impl ResourceQuery for SubnetQuery
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.