[−][src]Struct openstack::network::SubnetQuery
A query to subnet list.
Implementations
impl SubnetQuery
[src][−]
pub fn with_marker<T: Into<String>>(self, marker: T) -> Self
[src][−]
Add marker to the request.
Using this disables automatic pagination.
pub fn with_limit(self, limit: usize) -> Self
[src][−]
Add limit to the request.
Using this disables automatic pagination.
pub fn sort_by(self, sort: Sort<SubnetSortKey>) -> Self
[src][−]
Add sorting to the request.
pub fn set_cidr<T: Into<IpNet>>(&mut self, value: T)
[src][−]
Filter by CIDR.
pub fn with_cidr<T: Into<IpNet>>(self, value: T) -> Self
[src][−]
Filter by CIDR.
pub fn set_description<T: Into<String>>(&mut self, value: T)
[src][−]
Filter by description.
pub fn with_description<T: Into<String>>(self, value: T) -> Self
[src][−]
Filter by description.
pub fn set_dhcp_enabled<T: Into<bool>>(&mut self, value: T)
[src][−]
Filter by whether DHCP is enabled.
pub fn with_dhcp_enabled<T: Into<bool>>(self, value: T) -> Self
[src][−]
Filter by whether DHCP is enabled.
pub fn set_gateway_ip<T: Into<IpAddr>>(&mut self, value: T)
[src][−]
Filter by gateway IP.
pub fn with_gateway_ip<T: Into<IpAddr>>(self, value: T) -> Self
[src][−]
Filter by gateway IP.
pub fn set_ipv6_address_mode<T: Into<Ipv6Mode>>(&mut self, value: T)
[src][−]
Filter by IPv6 address assignment mode.
pub fn with_ipv6_address_mode<T: Into<Ipv6Mode>>(self, value: T) -> Self
[src][−]
Filter by IPv6 address assignment mode.
pub fn set_ipv6_router_advertisement_mode<T: Into<Ipv6Mode>>(
&mut self,
value: T
)
[src][−]
&mut self,
value: T
)
Filter by IPv6 router advertisement mode.
pub fn with_ipv6_router_advertisement<T: Into<Ipv6Mode>>(self, value: T) -> Self
[src][−]
Filter by IPv6 router advertisement mode.
pub fn set_name<T: Into<String>>(&mut self, value: T)
[src][−]
Filter by subnet name.
pub fn with_name<T: Into<String>>(self, value: T) -> Self
[src][−]
Filter by subnet name.
pub fn set_network<N: Into<NetworkRef>>(&mut self, value: N)
[src][−]
Filter by network.
pub fn with_network<N: Into<NetworkRef>>(self, value: N) -> Self
[src][−]
Filter by network.
pub fn into_iter(self) -> ResourceIterator<SubnetQuery>
[src][−]
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.
pub fn all(self) -> Result<Vec<Subnet>>
[src][−]
Execute this request and return all results.
A convenience shortcut for self.into_iter().collect()
.
pub fn one(self) -> Result<Subnet>
[src][−]
Return one and exactly one result.
Fails with ResourceNotFound
if the query produces no results and
with TooManyItems
if the query produces more than one result.
Trait Implementations
impl Clone for SubnetQuery
[src][+]
impl Debug for SubnetQuery
[src][+]
impl IntoFallibleIterator for SubnetQuery
[src][+]
impl ResourceQuery for SubnetQuery
[src][+]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<I> IntoFallibleIterator for I where
I: FallibleIterator,
[src][+]
I: FallibleIterator,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,