Struct openstack::compute::KeyPairQuery [−][src]
pub struct KeyPairQuery { /* fields omitted */ }A query to server list.
Methods
impl KeyPairQuery[src]
impl KeyPairQuerypub fn with_marker<T: Into<String>>(self, marker: T) -> Self[src]
pub fn with_marker<T: Into<String>>(self, marker: T) -> SelfAdd marker to the request.
Using this disables automatic pagination.
pub fn with_limit(self, limit: usize) -> Self[src]
pub fn with_limit(self, limit: usize) -> SelfAdd limit to the request.
Using this disables automatic pagination.
pub fn into_iter(self) -> ResourceIterator<KeyPair>[src]
pub fn into_iter(self) -> ResourceIterator<KeyPair>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<KeyPair>>[src]
pub fn all(self) -> Result<Vec<KeyPair>>Execute this request and return all results.
A convenience shortcut for self.into_iter().collect().
pub fn one(self) -> Result<KeyPair>[src]
pub fn one(self) -> Result<KeyPair>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 KeyPairQuery[src]
impl Clone for KeyPairQueryfn clone(&self) -> KeyPairQuery[src]
fn clone(&self) -> KeyPairQueryReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for KeyPairQuery[src]
impl Debug for KeyPairQueryfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl IntoFallibleIterator for KeyPairQuery[src]
impl IntoFallibleIterator for KeyPairQuerytype Item = KeyPair
The elements of the iterator.
type Error = Error
The error value of the iterator.
type IntoIter = ResourceIterator<KeyPair>
The iterator.
fn into_fallible_iterator(self) -> ResourceIterator<KeyPair>[src]
fn into_fallible_iterator(self) -> ResourceIterator<KeyPair>Creates a fallible iterator from a value.
Auto Trait Implementations
impl !Send for KeyPairQuery
impl !Send for KeyPairQueryimpl !Sync for KeyPairQuery
impl !Sync for KeyPairQuery