pub struct PagerOptions<'a> {
pub context: Context<'a>,
pub continuation: Option<PagerContinuation>,
}Expand description
Options for configuring the behavior of a Pager.
Fields§
§context: Context<'a>Context for HTTP requests made by the Pager.
continuation: Option<PagerContinuation>Optional continuation token or next link to resume paging.
§Examples
use azure_core::http::pager::PagerOptions;
use azure_identity::DeveloperToolsCredential;
use azure_security_keyvault_secrets::{
models::SecretClientListSecretPropertiesOptions,
SecretClient,
};
use futures::stream::TryStreamExt as _;
let client = SecretClient::new("https://my-vault.vault.azure.net", DeveloperToolsCredential::new(None)?, None)?;
// Start the first pager at the first page.
let mut pager = client.list_secret_properties(None)?;
// Continue the second pager from where the first pager left off,
// which is the first page in this example.
let options = SecretClientListSecretPropertiesOptions {
method_options: PagerOptions {
continuation: pager.into_continuation(),
..Default::default()
},
..Default::default()
};
let mut pager = client.list_secret_properties(Some(options))?;
while let Some(secret) = pager.try_next().await? {
println!("{:?}", secret.id);
}Trait Implementations§
Source§impl<'a> Clone for PagerOptions<'a>
impl<'a> Clone for PagerOptions<'a>
Source§fn clone(&self) -> PagerOptions<'a>
fn clone(&self) -> PagerOptions<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for PagerOptions<'a>
impl<'a> Debug for PagerOptions<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PagerOptions<'a>
impl<'a> !UnwindSafe for PagerOptions<'a>
impl<'a> Freeze for PagerOptions<'a>
impl<'a> Send for PagerOptions<'a>
impl<'a> Sync for PagerOptions<'a>
impl<'a> Unpin for PagerOptions<'a>
impl<'a> UnsafeUnpin for PagerOptions<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
Source§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
Decompress response bodies. Read more
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more