[−][src]Struct openstack::network::PortQuery
A query to port list.
Methods
impl PortQuery[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<PortSortKey>) -> Self[src]
Add sorting to the request.
pub fn set_admin_state_up<T: Into<bool>>(&mut self, value: T)[src]
Filter by administrative state.
pub fn with_admin_state_up<T: Into<bool>>(self, value: T) -> Self[src]
Filter by administrative state.
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_device_id<T: Into<String>>(&mut self, value: T)[src]
Filter by the ID of the object attached to the port.
pub fn with_device_id<T: Into<String>>(self, value: T) -> Self[src]
Filter by the ID of the object attached to the port.
pub fn set_device_owner<T: Into<String>>(&mut self, value: T)[src]
Filter by the ID of the object attached to the port.
pub fn with_device_owner<T: Into<String>>(self, value: T) -> Self[src]
Filter by the ID of the object attached to the port.
pub fn set_mac_address<T: Into<String>>(&mut self, value: T)[src]
Filter by MAC address.
pub fn with_mac_address<T: Into<String>>(self, value: T) -> Self[src]
Filter by MAC address.
pub fn set_name<T: Into<String>>(&mut self, value: T)[src]
Filter by port name.
pub fn with_name<T: Into<String>>(self, value: T) -> Self[src]
Filter by port 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 set_status<T: Into<NetworkStatus>>(&mut self, value: T)[src]
Filter by status.
pub fn with_status<T: Into<NetworkStatus>>(self, value: T) -> Self[src]
Filter by status.
pub fn into_iter(self) -> ResourceIterator<PortQuery>[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<Port>>[src]
Execute this request and return all results.
A convenience shortcut for self.into_iter().collect().
pub fn one(self) -> Result<Port>[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 ResourceQuery for PortQuery[src]
type Item = Port
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]
impl Clone for PortQuery[src]
fn clone(&self) -> PortQuery[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for PortQuery[src]
impl IntoFallibleIterator for PortQuery[src]
type Item = Port
The elements of the iterator.
type Error = Error
The error value of the iterator.
type IntoIter = ResourceIterator<PortQuery>
The iterator.
fn into_fallible_iterator(self) -> Self::IntoIter[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
try_from)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> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
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 IntoIter = I
The iterator.