pub struct ContentBuilder { /* private fields */ }
Implementations
sourceimpl ContentBuilder
impl ContentBuilder
sourcepub fn new() -> ContentBuilder
pub fn new() -> ContentBuilder
Constructs a new ContentBuilder
.
sourcepub fn encoding<S: Into<String>, E: Into<Encoding>>(
self,
property_name: S,
encoding: E
) -> Self
pub fn encoding<S: Into<String>, E: Into<Encoding>>(
self,
property_name: S,
encoding: E
) -> Self
Add an encoding.
The property_name
MUST exist in the Content::schema
as a property,
with schema
being a Schema::Object
and this object containing the same property
key in Object::properties
.
The encoding object SHALL only apply to request_body
objects when the media type is
multipart or application/x-www-form-urlencoded
.
Trait Implementations
sourceimpl Default for ContentBuilder
impl Default for ContentBuilder
sourcefn default() -> ContentBuilder
fn default() -> ContentBuilder
Returns the “default value” for a type. Read more
sourceimpl From<Content> for ContentBuilder
impl From<Content> for ContentBuilder
sourceimpl From<ContentBuilder> for Content
impl From<ContentBuilder> for Content
sourcefn from(value: ContentBuilder) -> Self
fn from(value: ContentBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for ContentBuilder
impl Send for ContentBuilder
impl Sync for ContentBuilder
impl Unpin for ContentBuilder
impl UnwindSafe for ContentBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more