Struct rtsp_types::headers::content_type::ContentType
source · pub struct ContentType {
pub media_type: MediaType,
pub media_subtype: String,
pub params: Vec<(String, Option<String>)>,
}Expand description
Content-Type header (RFC 7826 section 18.19).
Fields§
§media_type: MediaTypeMedia type.
media_subtype: StringMedia subtype.
params: Vec<(String, Option<String>)>Optional media parameters.
Trait Implementations§
source§impl Clone for ContentType
impl Clone for ContentType
source§fn clone(&self) -> ContentType
fn clone(&self) -> ContentType
Returns a copy 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 ContentType
impl Debug for ContentType
source§impl Ord for ContentType
impl Ord for ContentType
source§fn cmp(&self, other: &ContentType) -> Ordering
fn cmp(&self, other: &ContentType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ContentType
impl PartialEq for ContentType
source§fn eq(&self, other: &ContentType) -> bool
fn eq(&self, other: &ContentType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ContentType
impl PartialOrd for ContentType
source§fn partial_cmp(&self, other: &ContentType) -> Option<Ordering>
fn partial_cmp(&self, other: &ContentType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl TypedHeader for ContentType
impl TypedHeader for ContentType
source§fn from_headers(
headers: impl AsRef<Headers>,
) -> Result<Option<Self>, HeaderParseError>
fn from_headers( headers: impl AsRef<Headers>, ) -> Result<Option<Self>, HeaderParseError>
Parses the header from headers.
source§fn insert_into(&self, headers: impl AsMut<Headers>)
fn insert_into(&self, headers: impl AsMut<Headers>)
Inserts the header into headers.
impl Eq for ContentType
impl StructuralPartialEq for ContentType
Auto Trait Implementations§
impl Freeze for ContentType
impl RefUnwindSafe for ContentType
impl Send for ContentType
impl Sync for ContentType
impl Unpin for ContentType
impl UnwindSafe for ContentType
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