Struct openstack::network::SubnetQuery
source · pub struct SubnetQuery { /* private fields */ }
Expand description
A query to subnet list.
Implementations
sourceimpl 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(&mut self, value: bool)
pub fn set_dhcp_enabled(&mut self, value: bool)
Filter by whether DHCP is enabled.
sourcepub fn with_dhcp_enabled(self, value: bool) -> Self
pub fn with_dhcp_enabled(self, value: bool) -> Self
Filter by whether DHCP is enabled.
sourcepub fn set_gateway_ip(&mut self, value: IpAddr)
pub fn set_gateway_ip(&mut self, value: IpAddr)
Filter by gateway IP.
sourcepub fn with_gateway_ip(self, value: IpAddr) -> Self
pub fn with_gateway_ip(self, value: IpAddr) -> Self
Filter by gateway IP.
sourcepub fn set_ipv6_address_mode(&mut self, value: Ipv6Mode)
pub fn set_ipv6_address_mode(&mut self, value: Ipv6Mode)
Filter by IPv6 address assignment mode.
sourcepub fn with_ipv6_address_mode(self, value: Ipv6Mode) -> Self
pub fn with_ipv6_address_mode(self, value: Ipv6Mode) -> Self
Filter by IPv6 address assignment mode.
sourcepub fn set_ipv6_router_advertisement_mode(&mut self, value: Ipv6Mode)
pub fn set_ipv6_router_advertisement_mode(&mut self, value: Ipv6Mode)
Filter by IPv6 router advertisement mode.
sourcepub fn with_ipv6_router_advertisement(self, value: Ipv6Mode) -> Self
pub fn with_ipv6_router_advertisement(self, value: Ipv6Mode) -> 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_iter(self) -> ResourceIterator<SubnetQuery>
pub fn into_iter(self) -> ResourceIterator<SubnetQuery>
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 SubnetQuery
impl Clone for SubnetQuery
sourcefn clone(&self) -> SubnetQuery
fn clone(&self) -> SubnetQuery
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 SubnetQuery
impl Debug for SubnetQuery
sourceimpl IntoFallibleIterator for SubnetQuery
impl IntoFallibleIterator for SubnetQuery
type IntoIter = ResourceIterator<SubnetQuery>
type IntoIter = ResourceIterator<SubnetQuery>
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 SubnetQuery
impl ResourceQuery for SubnetQuery
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 SubnetQuery
impl !Send for SubnetQuery
impl !Sync for SubnetQuery
impl Unpin for SubnetQuery
impl !UnwindSafe for SubnetQuery
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