pub struct SystemOneRequest { /* private fields */ }Expand description
A pending POST /v1/systemone. Configure it, then .await it (or call send).
Implementations§
Source§impl SystemOneRequest
impl SystemOneRequest
Sourcepub fn retry(self, policy: RetryPolicy) -> Self
pub fn retry(self, policy: RetryPolicy) -> Self
Override the retry policy for this call.
Sourcepub fn timeout(self, timeout: Duration) -> Self
pub fn timeout(self, timeout: Duration) -> Self
Override the per-attempt timeout for this call.
Sourcepub fn header(self, name: HeaderName, value: HeaderValue) -> Self
pub fn header(self, name: HeaderName, value: HeaderValue) -> Self
Add a header for this call (protected headers still win).
Sourcepub fn extra_body(self, key: impl Into<String>, value: impl Into<Value>) -> Self
pub fn extra_body(self, key: impl Into<String>, value: impl Into<Value>) -> Self
Add a top-level body field. A key named state, model or questions replaces the
standard field. Useful for API fields this SDK version does not model yet.
Sourcepub async fn send(self) -> Result<SystemOneResponse>
pub async fn send(self) -> Result<SystemOneResponse>
Send the request.
Trait Implementations§
Source§impl Debug for SystemOneRequest
impl Debug for SystemOneRequest
Source§impl IntoFuture for SystemOneRequest
impl IntoFuture for SystemOneRequest
Source§type Output = Result<SystemOneResponse, Error>
type Output = Result<SystemOneResponse, Error>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <SystemOneRequest as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <SystemOneRequest 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 SystemOneRequest
impl !UnwindSafe for SystemOneRequest
impl Freeze for SystemOneRequest
impl Send for SystemOneRequest
impl Sync for SystemOneRequest
impl Unpin for SystemOneRequest
impl UnsafeUnpin for SystemOneRequest
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