pub struct Request { /* private fields */ }Expand description
One call of a service’s method, as its HTTP binding sends it. The generated clients build it.
Implementations§
Source§impl Request
impl Request
Sourcepub fn new(method: Method, path: impl Into<String>) -> Self
pub fn new(method: Method, path: impl Into<String>) -> Self
A call of method on path, the escaped path from the root.
Sourcepub fn with_query(self, query: Query) -> Self
pub fn with_query(self, query: Query) -> Self
Sends query as the query parameters.
Sourcepub fn idempotent(self) -> Self
pub fn idempotent(self) -> Self
Marks the call as one whose sending twice has the effect of sending it once: a read, or a mutation with a request id. Only such a call is retried.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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