pub struct KeyPairQuery { /* private fields */ }Expand description
A query to server list.
Implementations§
Source§impl KeyPairQuery
impl KeyPairQuery
Sourcepub fn with_marker<T: Into<String>>(self, marker: T) -> Self
pub fn with_marker<T: Into<String>>(self, marker: T) -> Self
Add marker to the request.
Using this disables automatic pagination.
Sourcepub fn with_limit(self, limit: usize) -> Self
pub fn with_limit(self, limit: usize) -> Self
Add limit to the request.
Using this disables automatic pagination.
Sourcepub fn into_stream(self) -> impl Stream<Item = Result<KeyPair>>
pub fn into_stream(self) -> impl Stream<Item = Result<KeyPair>>
Convert this query into a stream executing the request.
Returns a TryStream, which is a stream with each next
call returning a Result.
Note that no requests are done until you start iterating.
Trait Implementations§
Source§impl Clone for KeyPairQuery
impl Clone for KeyPairQuery
Source§fn clone(&self) -> KeyPairQuery
fn clone(&self) -> KeyPairQuery
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeyPairQuery
impl Debug for KeyPairQuery
Source§impl ResourceQuery for KeyPairQuery
impl ResourceQuery for KeyPairQuery
Source§const DEFAULT_LIMIT: usize = 50usize
const DEFAULT_LIMIT: usize = 50usize
Default limit to use with this query.
Source§fn can_paginate<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn can_paginate<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Whether pagination is supported for this query.
Source§fn extract_marker(&self, resource: &Self::Item) -> String
fn extract_marker(&self, resource: &Self::Item) -> String
Extract a marker from a resource.
Auto Trait Implementations§
impl Freeze for KeyPairQuery
impl !RefUnwindSafe for KeyPairQuery
impl Send for KeyPairQuery
impl Sync for KeyPairQuery
impl Unpin for KeyPairQuery
impl !UnwindSafe for KeyPairQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more