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

pub struct ServerQuery<'session> { /* fields omitted */ }

A query to server list.

Methods

impl<'session> ServerQuery<'session>
[src]

[src]

Add marker to the request.

Using this disables automatic pagination.

[src]

Add limit to the request.

Using this disables automatic pagination.

[src]

Add sorting to the request.

[src]

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

[src]

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

[src]

Filter by availability zone.

[src]

Filter by flavor.

[src]

Filter by host name.

[src]

Filter by image ID.

[src]

Filter by an IPv4 address.

[src]

Filter by an IPv6 address.

[src]

Filter by server name (a database regular expression).

[src]

Filter by power state.

[src]

Filter by project ID (also commonly known as tenant ID).

[src]

Filter by server status.

[src]

Filter by user ID.

[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.

[src]

Convert this query into an iterator executing the request.

This iterator yields full Server objects. If you only need IDs and/or names, use into_iter to save bandwidth.

Returns a FallibleIterator, which is an iterator with each next call returning a Result.

Note that no requests are done until you start iterating.

[src]

Execute this request and return all results.

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

[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<'session> Clone for ServerQuery<'session>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'session> Debug for ServerQuery<'session>
[src]

[src]

Formats the value using the given formatter.

impl<'session> IntoFallibleIterator for ServerQuery<'session>
[src]

The elements of the iterator.

The error value of the iterator.

The iterator.

[src]

Creates a fallible iterator from a value.