[][src]Struct openstack::compute::ServerQuery

pub struct ServerQuery { /* fields omitted */ }

A query to server list.

Implementations

impl ServerQuery[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<ServerSortKey>) -> Self[src]

Add sorting to the request.

pub fn set_access_ip_v4<T: Into<Ipv4Addr>>(&mut self, value: T)[src]

Filter by IPv4 address that should be used to access the server.

pub fn with_access_ip_v4<T: Into<Ipv4Addr>>(self, value: T) -> Self[src]

Filter by IPv4 address that should be used to access the server.

pub fn set_access_ip_v6<T: Into<Ipv6Addr>>(&mut self, value: T)[src]

Filter by IPv6 address that should be used to access the server.

pub fn with_access_ip_v6<T: Into<Ipv6Addr>>(self, value: T) -> Self[src]

Filter by IPv6 address that should be used to access the server.

pub fn set_availability_zone<T: Into<String>>(&mut self, value: T)[src]

Filter by availability zone.

pub fn with_availability_zone<T: Into<String>>(self, value: T) -> Self[src]

Filter by availability zone.

pub fn set_flavor<T: Into<FlavorRef>>(&mut self, value: T)[src]

Filter by flavor.

pub fn with_flavor<T: Into<FlavorRef>>(self, value: T) -> Self[src]

Filter by flavor.

pub fn set_hostname<T: Into<String>>(&mut self, value: T)[src]

Filter by host name.

pub fn with_hostname<T: Into<String>>(self, value: T) -> Self[src]

Filter by host name.

pub fn set_image<T: Into<ImageRef>>(&mut self, value: T)[src]

Filter by image used to build the server.

pub fn with_image<T: Into<ImageRef>>(self, value: T) -> Self[src]

Filter by image used to build the server.

pub fn set_ip_v4<T: Into<Ipv4Addr>>(&mut self, value: T)[src]

Filter by an IPv4 address.

pub fn with_ip_v4<T: Into<Ipv4Addr>>(self, value: T) -> Self[src]

Filter by an IPv4 address.

pub fn set_ip_v6<T: Into<Ipv6Addr>>(&mut self, value: T)[src]

Filter by an IPv6 address.

pub fn with_ip_v6<T: Into<Ipv6Addr>>(self, value: T) -> Self[src]

Filter by an IPv6 address.

pub fn set_name<T: Into<String>>(&mut self, value: T)[src]

Filter by name.

pub fn with_name<T: Into<String>>(self, value: T) -> Self[src]

Filter by name.

pub fn set_project<T: Into<ProjectRef>>(&mut self, value: T)[src]

Filter by project (also commonly known as tenant).

pub fn with_project<T: Into<ProjectRef>>(self, value: T) -> Self[src]

Filter by project (also commonly known as tenant).

pub fn set_status<T: Into<ServerStatus>>(&mut self, value: T)[src]

Filter by server status.

pub fn with_status<T: Into<ServerStatus>>(self, value: T) -> Self[src]

Filter by server status.

pub fn set_user<T: Into<UserRef>>(&mut self, value: T)[src]

Filter by user.

pub fn with_user<T: Into<UserRef>>(self, value: T) -> Self[src]

Filter by user.

pub fn detailed(self) -> DetailedServerQuery[src]

Convert this query into a detailed query.

pub fn into_iter(self) -> ResourceIterator<ServerQuery>[src]

Convert this query into an iterator executing the request.

This iterator yields only ServerSummary objects, containing IDs and names. Use into_iter_detailed for full Server objects.

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<ServerSummary>>[src]

Execute this request and return all results.

A convenience shortcut for self.into_iter().collect().

pub fn one(self) -> Result<ServerSummary>[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 ServerQuery[src]

impl Debug for ServerQuery[src]

impl From<DetailedServerQuery> for ServerQuery[src]

impl From<ServerQuery> for DetailedServerQuery[src]

impl IntoFallibleIterator for ServerQuery[src]

type Item = ServerSummary

The elements of the iterator.

type Error = Error

The error value of the iterator.

type IntoFallibleIter = ResourceIterator<ServerQuery>

The iterator.

impl ResourceQuery for ServerQuery[src]

type Item = ServerSummary

Item type.

Auto Trait Implementations

impl !RefUnwindSafe for ServerQuery

impl !Send for ServerQuery

impl !Sync for ServerQuery

impl Unpin for ServerQuery

impl !UnwindSafe for ServerQuery

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoFallibleIterator for I where
    I: FallibleIterator
[src]

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.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.