pub enum CheckBody {
Json(Value),
FormUrlencoded(Vec<(String, String)>),
Raw {
content: String,
content_type: String,
},
Multipart {
parts: Vec<MultipartPart>,
},
}Expand description
Request body variants
Variants§
Json(Value)
JSON body
FormUrlencoded(Vec<(String, String)>)
Form-urlencoded body
Raw
Raw string body with content type
Multipart
Round 38 (#79) — multipart/form-data with file attachments.
Bytes are read from disk at request time so a YAML can name a
50 MiB .docx without inflating the config. Use one entry per
part; the executor builds a single reqwest::multipart::Form
containing all of them so multi-file uploads land in one
request.
Fields
§
parts: Vec<MultipartPart>Trait Implementations§
Auto Trait Implementations§
impl Freeze for CheckBody
impl RefUnwindSafe for CheckBody
impl Send for CheckBody
impl Sync for CheckBody
impl Unpin for CheckBody
impl UnsafeUnpin for CheckBody
impl UnwindSafe for CheckBody
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more