#[repr(u16)]pub enum ContentFormat {
TextPlain = 0,
OctetStream = 42,
Json = 50,
Cbor = 60,
}Expand description
Content-Format option used by CoAP — RFC 7252 §12.3.
Variants§
TextPlain = 0
text/plain;charset=utf-8.
OctetStream = 42
application/octet-stream.
Json = 50
application/json.
Cbor = 60
application/cbor.
Trait Implementations§
Source§impl Clone for ContentFormat
impl Clone for ContentFormat
Source§fn clone(&self) -> ContentFormat
fn clone(&self) -> ContentFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContentFormat
Source§impl Debug for ContentFormat
impl Debug for ContentFormat
Source§impl Default for ContentFormat
impl Default for ContentFormat
Source§fn default() -> ContentFormat
fn default() -> ContentFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContentFormat
impl<'de> Deserialize<'de> for ContentFormat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ContentFormat
Source§impl Hash for ContentFormat
impl Hash for ContentFormat
Source§impl PartialEq for ContentFormat
impl PartialEq for ContentFormat
Source§impl Serialize for ContentFormat
impl Serialize for ContentFormat
impl StructuralPartialEq for ContentFormat
Auto Trait Implementations§
impl Freeze for ContentFormat
impl RefUnwindSafe for ContentFormat
impl Send for ContentFormat
impl Sync for ContentFormat
impl Unpin for ContentFormat
impl UnsafeUnpin for ContentFormat
impl UnwindSafe for ContentFormat
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