pub struct ListCredentialsBuilder { /* private fields */ }Expand description
Builder for listing credentials
Implementations§
Source§impl ListCredentialsBuilder
impl ListCredentialsBuilder
Sourcepub fn with_purpose(self, purpose: impl Into<Option<Purpose>>) -> Self
pub fn with_purpose(self, purpose: impl Into<Option<Purpose>>) -> Self
Return only credentials for the specified purpose.
Sourcepub fn with_max_results(self, max_results: impl Into<Option<i32>>) -> Self
pub fn with_max_results(self, max_results: impl Into<Option<i32>>) -> Self
The maximum number of results per page that should be returned.
Sourcepub fn with_page_token(self, page_token: impl Into<Option<String>>) -> Self
pub fn with_page_token(self, page_token: impl Into<Option<String>>) -> Self
Opaque pagination token to go to next page based on previous query.
Sourcepub fn into_stream(self) -> BoxStream<'static, Result<Credential>>
pub fn into_stream(self) -> BoxStream<'static, Result<Credential>>
Convert paginated request into stream of results
Trait Implementations§
Source§impl IntoFuture for ListCredentialsBuilder
impl IntoFuture for ListCredentialsBuilder
Source§type Output = Result<ListCredentialsResponse, Error>
type Output = Result<ListCredentialsResponse, Error>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <ListCredentialsBuilder as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <ListCredentialsBuilder as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ListCredentialsBuilder
impl !UnwindSafe for ListCredentialsBuilder
impl Freeze for ListCredentialsBuilder
impl Send for ListCredentialsBuilder
impl Sync for ListCredentialsBuilder
impl Unpin for ListCredentialsBuilder
impl UnsafeUnpin for ListCredentialsBuilder
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