pub enum RequestBodyContent {
Json {
schema_name: String,
},
FormUrlEncoded {
schema_name: String,
},
Multipart,
OctetStream,
TextPlain,
}Expand description
Content type and schema for a request body
Variants§
Implementations§
Source§impl RequestBodyContent
impl RequestBodyContent
Sourcepub fn schema_name(&self) -> Option<&str>
pub fn schema_name(&self) -> Option<&str>
Get the schema name if this content type has one
Trait Implementations§
Source§impl Clone for RequestBodyContent
impl Clone for RequestBodyContent
Source§fn clone(&self) -> RequestBodyContent
fn clone(&self) -> RequestBodyContent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RequestBodyContent
impl Debug for RequestBodyContent
Auto Trait Implementations§
impl Freeze for RequestBodyContent
impl RefUnwindSafe for RequestBodyContent
impl Send for RequestBodyContent
impl Sync for RequestBodyContent
impl Unpin for RequestBodyContent
impl UnwindSafe for RequestBodyContent
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