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.