pub struct CosmosRequest {
pub method: &'static str,
pub url: String,
pub headers: Vec<(&'static str, String)>,
pub body: String,
}Expand description
A built (but not sent) HTTP request to Cosmos. Used by sample_documents
and exposed for unit testing the construction logic without hitting the network.
Fields§
§method: &'static str§url: String§headers: Vec<(&'static str, String)>§body: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for CosmosRequest
impl RefUnwindSafe for CosmosRequest
impl Send for CosmosRequest
impl Sync for CosmosRequest
impl Unpin for CosmosRequest
impl UnsafeUnpin for CosmosRequest
impl UnwindSafe for CosmosRequest
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