Struct openstack::network::FloatingIpQuery
source · pub struct FloatingIpQuery { /* private fields */ }
Expand description
A query to floating IP list.
Implementations§
source§impl FloatingIpQuery
impl FloatingIpQuery
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<FloatingIpSortKey>) -> Self
pub fn sort_by(self, sort: Sort<FloatingIpSortKey>) -> 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_fixed_ip_address<T: Into<IpAddr>>(&mut self, value: T)
pub fn set_fixed_ip_address<T: Into<IpAddr>>(&mut self, value: T)
Filter by fixed IP address.
sourcepub fn with_fixed_ip_address<T: Into<IpAddr>>(self, value: T) -> Self
pub fn with_fixed_ip_address<T: Into<IpAddr>>(self, value: T) -> Self
Filter by fixed IP address.
sourcepub fn set_floating_ip_address<T: Into<IpAddr>>(&mut self, value: T)
pub fn set_floating_ip_address<T: Into<IpAddr>>(&mut self, value: T)
Filter by floating IP address.
sourcepub fn with_floating_ip_address<T: Into<IpAddr>>(self, value: T) -> Self
pub fn with_floating_ip_address<T: Into<IpAddr>>(self, value: T) -> Self
Filter by floating IP address.
sourcepub fn set_floating_network<N: Into<NetworkRef>>(&mut self, value: N)
pub fn set_floating_network<N: Into<NetworkRef>>(&mut self, value: N)
Filter by network.
sourcepub fn with_floating_network<N: Into<NetworkRef>>(self, value: N) -> Self
pub fn with_floating_network<N: Into<NetworkRef>>(self, value: N) -> Self
Filter by network.
sourcepub fn set_router<N: Into<RouterRef>>(&mut self, value: N)
pub fn set_router<N: Into<RouterRef>>(&mut self, value: N)
sourcepub fn with_router<N: Into<RouterRef>>(self, value: N) -> Self
pub fn with_router<N: Into<RouterRef>>(self, value: N) -> Self
sourcepub fn set_status<T: Into<FloatingIpStatus>>(&mut self, value: T)
pub fn set_status<T: Into<FloatingIpStatus>>(&mut self, value: T)
Filter by status.
sourcepub fn with_status<T: Into<FloatingIpStatus>>(self, value: T) -> Self
pub fn with_status<T: Into<FloatingIpStatus>>(self, value: T) -> Self
Filter by status.
sourcepub fn into_stream(self) -> impl Stream<Item = Result<FloatingIp>>
pub fn into_stream(self) -> impl Stream<Item = Result<FloatingIp>>
Convert this query into a 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.
sourcepub async fn all(self) -> Result<Vec<FloatingIp>>
pub async fn all(self) -> Result<Vec<FloatingIp>>
Execute this request and return all results.
A convenience shortcut for self.into_stream().try_collect().await
.
sourcepub async fn one(self) -> Result<FloatingIp>
pub async fn one(self) -> Result<FloatingIp>
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§
source§impl Clone for FloatingIpQuery
impl Clone for FloatingIpQuery
source§fn clone(&self) -> FloatingIpQuery
fn clone(&self) -> FloatingIpQuery
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more