pub struct Call {
pub method: &'static str,
pub path: String,
pub query: Vec<(String, String)>,
pub body: Vec<u8>,
pub headers: Vec<(String, String)>,
pub content_type: Option<String>,
pub request_id: Option<String>,
pub traceparent: Option<String>,
pub timeout: Option<Duration>,
pub retry_gateway: bool,
pub recover: Vec<(u16, &'static str)>,
}Expand description
A call to the API, before it becomes HTTP.
Fields§
§method: &'static str§path: StringPath with the segments already encoded (/topics/orders).
query: Vec<(String, String)>§body: Vec<u8>§headers: Vec<(String, String)>Only applies with a body; default application/json.
Extra headers (an Accept of its own replaces the default application/json).
content_type: Option<String>§request_id: Option<String>§traceparent: Option<String>§timeout: Option<Duration>Overrides the total time of the call (consume uses waitTime + 10 s).
retry_gateway: boolRetries 502 and 504: only publishing to a FIFO queue, where the primary deduplicates.
recover: Vec<(u16, &'static str)>After a 503, these responses count as success (the operation had already been applied):
creating a topic (409 topic.already-exists) and deleting (404).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Call
impl RefUnwindSafe for Call
impl Send for Call
impl Sync for Call
impl Unpin for Call
impl UnsafeUnpin for Call
impl UnwindSafe for Call
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