[−][src]Struct openstack::network::FloatingIpQuery
A query to floating IP list.
Implementations
impl FloatingIpQuery
[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<FloatingIpSortKey>) -> Self
[src]
Add sorting to the request.
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_fixed_ip_address<T: Into<IpAddr>>(&mut self, value: T)
[src]
Filter by fixed IP address.
pub fn with_fixed_ip_address<T: Into<IpAddr>>(self, value: T) -> Self
[src]
Filter by fixed IP address.
pub fn set_floating_ip_address<T: Into<IpAddr>>(&mut self, value: T)
[src]
Filter by floating IP address.
pub fn with_floating_ip_address<T: Into<IpAddr>>(self, value: T) -> Self
[src]
Filter by floating IP address.
pub fn set_floating_network<N: Into<NetworkRef>>(&mut self, value: N)
[src]
Filter by network.
pub fn with_floating_network<N: Into<NetworkRef>>(self, value: N) -> Self
[src]
Filter by network.
pub fn set_port<N: Into<PortRef>>(&mut self, value: N)
[src]
Filter by port.
pub fn with_port<N: Into<PortRef>>(self, value: N) -> Self
[src]
Filter by network.
pub fn set_router<N: Into<RouterRef>>(&mut self, value: N)
[src]
pub fn with_router<N: Into<RouterRef>>(self, value: N) -> Self
[src]
pub fn set_status<T: Into<FloatingIpStatus>>(&mut self, value: T)
[src]
Filter by status.
pub fn with_status<T: Into<FloatingIpStatus>>(self, value: T) -> Self
[src]
Filter by status.
pub fn into_iter(self) -> ResourceIterator<FloatingIpQuery>
[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<FloatingIp>>
[src]
Execute this request and return all results.
A convenience shortcut for self.into_iter().collect()
.
pub fn one(self) -> Result<FloatingIp>
[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 FloatingIpQuery
[src]
fn clone(&self) -> FloatingIpQuery
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FloatingIpQuery
[src]
impl IntoFallibleIterator for FloatingIpQuery
[src]
type Item = FloatingIp
The elements of the iterator.
type Error = Error
The error value of the iterator.
type IntoFallibleIter = ResourceIterator<FloatingIpQuery>
The iterator.
fn into_fallible_iter(self) -> Self::IntoFallibleIter
[src]
impl ResourceQuery for FloatingIpQuery
[src]
type Item = FloatingIp
Item type.
const DEFAULT_LIMIT: usize
[src]
fn can_paginate(&self) -> Result<bool>
[src]
fn extract_marker(&self, resource: &Self::Item) -> String
[src]
fn fetch_chunk(
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
[src]
&self,
limit: Option<usize>,
marker: Option<String>
) -> Result<Vec<Self::Item>>
fn validate(&mut self) -> Result<()>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for FloatingIpQuery
impl !Send for FloatingIpQuery
impl !Sync for FloatingIpQuery
impl Unpin for FloatingIpQuery
impl !UnwindSafe for FloatingIpQuery
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[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,
type Item = <I as FallibleIterator>::Item
The elements of the iterator.
type Error = <I as FallibleIterator>::Error
The error value of the iterator.
type IntoFallibleIter = I
The iterator.
fn into_fallible_iter(self) -> I
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,