pub struct Decisions { /* private fields */ }Expand description
Reads the decision audit trail.
Implementations§
Source§impl Decisions
impl Decisions
Sourcepub async fn get(
&self,
request_id: &str,
req: impl Into<Option<RequestOptions>>,
) -> Result<Decision>
pub async fn get( &self, request_id: &str, req: impl Into<Option<RequestOptions>>, ) -> Result<Decision>
Sourcepub async fn list(
&self,
params: &DecisionListParams,
req: impl Into<Option<RequestOptions>>,
) -> Result<DecisionListPage>
pub async fn list( &self, params: &DecisionListParams, req: impl Into<Option<RequestOptions>>, ) -> Result<DecisionListPage>
Sourcepub fn pages(
&self,
params: DecisionListParams,
req: Option<RequestOptions>,
) -> impl Stream<Item = Result<DecisionListPage>> + Send + 'static
pub fn pages( &self, params: DecisionListParams, req: Option<RequestOptions>, ) -> impl Stream<Item = Result<DecisionListPage>> + Send + 'static
Stream one DecisionListPage per network round-trip until the
gateway reports no more pages.
Sourcepub fn iter(
&self,
params: DecisionListParams,
req: Option<RequestOptions>,
) -> impl Stream<Item = Result<Decision>> + Send + 'static
pub fn iter( &self, params: DecisionListParams, req: Option<RequestOptions>, ) -> impl Stream<Item = Result<Decision>> + Send + 'static
Stream every decision across all pages.
Auto Trait Implementations§
impl Freeze for Decisions
impl !RefUnwindSafe for Decisions
impl Send for Decisions
impl Sync for Decisions
impl Unpin for Decisions
impl UnsafeUnpin for Decisions
impl !UnwindSafe for Decisions
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