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 duplicate 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.
Auto Trait Implementations§
impl Freeze for SubnetQuery
impl !RefUnwindSafe for SubnetQuery
impl Send for SubnetQuery
impl Sync for SubnetQuery
impl Unpin for SubnetQuery
impl !UnwindSafe for SubnetQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more