pub struct ContentTypeCharset {
pub content_type: String,
pub charset: Option<String>,
}
Available on crate feature
unstable
only.Expand description
The Content-Type header value, along with the character set (if specified).
Fields§
§content_type: String
The content type of the body.
charset: Option<String>
The encoding (charset) of the body.
Trait Implementations§
Source§impl Clone for ContentTypeCharset
impl Clone for ContentTypeCharset
Source§fn clone(&self) -> ContentTypeCharset
fn clone(&self) -> ContentTypeCharset
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 ContentTypeCharset
impl Debug for ContentTypeCharset
Source§impl PartialEq for ContentTypeCharset
impl PartialEq for ContentTypeCharset
impl Eq for ContentTypeCharset
impl StructuralPartialEq for ContentTypeCharset
Auto Trait Implementations§
impl Freeze for ContentTypeCharset
impl RefUnwindSafe for ContentTypeCharset
impl Send for ContentTypeCharset
impl Sync for ContentTypeCharset
impl Unpin for ContentTypeCharset
impl UnwindSafe for ContentTypeCharset
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