pub struct EncodingBuilder { /* private fields */ }
Expand description
Implementations§
source§impl EncodingBuilder
impl EncodingBuilder
sourcepub fn new() -> EncodingBuilder
pub fn new() -> EncodingBuilder
Constructs a new EncodingBuilder
.
source§impl EncodingBuilder
impl EncodingBuilder
sourcepub fn content_type<S: Into<String>>(self, content_type: Option<S>) -> Self
pub fn content_type<S: Into<String>>(self, content_type: Option<S>) -> Self
Set the content type. See Encoding::content_type
.
sourcepub fn header<S: Into<String>, H: Into<Header>>(
self,
header_name: S,
header: H,
) -> Self
pub fn header<S: Into<String>, H: Into<Header>>( self, header_name: S, header: H, ) -> Self
Add a Header
. See Encoding::headers
.
sourcepub fn style(self, style: Option<ParameterStyle>) -> Self
pub fn style(self, style: Option<ParameterStyle>) -> Self
Set the style ParameterStyle
. See Encoding::style
.
sourcepub fn explode(self, explode: Option<bool>) -> Self
pub fn explode(self, explode: Option<bool>) -> Self
Set the explode. See Encoding::explode
.
sourcepub fn allow_reserved(self, allow_reserved: Option<bool>) -> Self
pub fn allow_reserved(self, allow_reserved: Option<bool>) -> Self
Set the allow reserved. See Encoding::allow_reserved
.
Trait Implementations§
source§impl Default for EncodingBuilder
impl Default for EncodingBuilder
source§impl From<Encoding> for EncodingBuilder
impl From<Encoding> for EncodingBuilder
source§impl From<EncodingBuilder> for Encoding
impl From<EncodingBuilder> for Encoding
source§fn from(value: EncodingBuilder) -> Self
fn from(value: EncodingBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EncodingBuilder
impl RefUnwindSafe for EncodingBuilder
impl Send for EncodingBuilder
impl Sync for EncodingBuilder
impl Unpin for EncodingBuilder
impl UnwindSafe for EncodingBuilder
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