pub struct SystemOneRequest<'a> { /* private fields */ }Expand description
Blocking POST /v1/systemone.
Implementations§
Source§impl SystemOneRequest<'_>
impl SystemOneRequest<'_>
Sourcepub fn retry(self, policy: RetryPolicy) -> Self
pub fn retry(self, policy: RetryPolicy) -> Self
See the async request’s retry.
Sourcepub fn header(self, name: HeaderName, value: HeaderValue) -> Self
pub fn header(self, name: HeaderName, value: HeaderValue) -> Self
See the async request’s header.
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.
Sourcepub fn send(self) -> Result<SystemOneResponse>
pub fn send(self) -> Result<SystemOneResponse>
Send and wait.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SystemOneRequest<'a>
impl<'a> !UnwindSafe for SystemOneRequest<'a>
impl<'a> Freeze for SystemOneRequest<'a>
impl<'a> Send for SystemOneRequest<'a>
impl<'a> Sync for SystemOneRequest<'a>
impl<'a> Unpin for SystemOneRequest<'a>
impl<'a> UnsafeUnpin for SystemOneRequest<'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