Enum coset::iana::CoapContentFormat
source · #[non_exhaustive]pub enum CoapContentFormat {
Show 48 variants
TextPlainUtf8 = 0,
CoseEncrypt0 = 16,
CoseMac0 = 17,
CoseSign1 = 18,
LinkFormat = 40,
Xml = 41,
OctetStream = 42,
Exi = 47,
Json = 50,
JsonPatchJson = 51,
MergePatchJson = 52,
Cbor = 60,
Cwt = 61,
MultipartCore = 62,
CborSeq = 63,
CoseEncrypt = 96,
CoseMac = 97,
CoseSign = 98,
CoseKey = 101,
CoseKeySet = 102,
SenmlJson = 110,
SensmlJson = 111,
SenmlCbor = 112,
SensmlCbor = 113,
SenmlExi = 114,
SensmlExi = 115,
CoapGroupJson = 256,
DotsCbor = 271,
Pkcs7MimeSmimeTypeServerGeneratedKey = 280,
Pkcs7MimeSmimeTypeCertsOnly = 281,
Pkcs7MimeSmimeTypeCmcRequest = 282,
Pkcs7MimeSmimeTypeCmcResponse = 283,
Pkcs8 = 284,
Csrattrs = 285,
Pkcs10 = 286,
PkixCert = 287,
SenmlXml = 310,
SensmlXml = 311,
SenmlEtchJson = 320,
SenmlEtchCbor = 322,
TdJson = 432,
VndOcfCbor = 10_000,
Oscore = 10_001,
JsonDeflate = 11_050,
CborDeflate = 11_060,
VndOmaLwm2mTlv = 11_542,
VndOmaLwm2mJson = 11_543,
VndOmaLwm2mCbor = 11_544,
}
Expand description
CoAP Content Formats
From IANA registry https://www.iana.org/assignments/core-parameters/core-parameters.xhtml#content-formats as of 2021-03-19.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
TextPlainUtf8 = 0
text/plain; charset=utf-8
CoseEncrypt0 = 16
application/cose; cose-type=“cose-encrypt0”
CoseMac0 = 17
application/cose; cose-type=“cose-mac0”
CoseSign1 = 18
application/cose; cose-type=“cose-sign1”
LinkFormat = 40
application/link-format
Xml = 41
application/xml
OctetStream = 42
application/octet-stream
Exi = 47
application/exi
Json = 50
application/json
JsonPatchJson = 51
application/json-patch+json
MergePatchJson = 52
application/merge-patch+json
Cbor = 60
application/cbor
Cwt = 61
application/cwt
MultipartCore = 62
application/multipart-core
CborSeq = 63
application/cbor-seq
CoseEncrypt = 96
application/cose; cose-type=“cose-encrypt”
CoseMac = 97
application/cose; cose-type=“cose-mac”
CoseSign = 98
application/cose; cose-type=“cose-sign”
CoseKey = 101
application/cose-key
CoseKeySet = 102
application/cose-key-set
SenmlJson = 110
application/senml+json
SensmlJson = 111
application/sensml+json
SenmlCbor = 112
application/senml+cbor
SensmlCbor = 113
application/sensml+cbor
SenmlExi = 114
application/senml-exi
SensmlExi = 115
application/sensml-exi
CoapGroupJson = 256
application/coap-group+json
DotsCbor = 271
application/dots+cbor
Pkcs7MimeSmimeTypeServerGeneratedKey = 280
application/pkcs7-mime; smime-type=server-generated-key
Pkcs7MimeSmimeTypeCertsOnly = 281
application/pkcs7-mime; smime-type=certs-only
Pkcs7MimeSmimeTypeCmcRequest = 282
application/pkcs7-mime; smime-type=CMC-Request
Pkcs7MimeSmimeTypeCmcResponse = 283
application/pkcs7-mime; smime-type=CMC-Response
Pkcs8 = 284
application/pkcs8
Csrattrs = 285
application/csrattrs
Pkcs10 = 286
application/pkcs10
PkixCert = 287
application/pkix-cert
SenmlXml = 310
application/senml+xml
SensmlXml = 311
application/sensml+xml
SenmlEtchJson = 320
application/senml-etch+json
SenmlEtchCbor = 322
application/senml-etch+cbor
TdJson = 432
application/td+json
VndOcfCbor = 10_000
application/vnd.ocf+cbor
Oscore = 10_001
application/oscore
JsonDeflate = 11_050
CborDeflate = 11_060
VndOmaLwm2mTlv = 11_542
application/vnd.oma.lwm2m+tlv
VndOmaLwm2mJson = 11_543
application/vnd.oma.lwm2m+json
VndOmaLwm2mCbor = 11_544
application/vnd.oma.lwm2m+cbor
Trait Implementations§
source§impl Clone for CoapContentFormat
impl Clone for CoapContentFormat
source§fn clone(&self) -> CoapContentFormat
fn clone(&self) -> CoapContentFormat
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CoapContentFormat
impl Debug for CoapContentFormat
source§impl EnumI64 for CoapContentFormat
impl EnumI64 for CoapContentFormat
source§impl Ord for CoapContentFormat
impl Ord for CoapContentFormat
source§fn cmp(&self, other: &CoapContentFormat) -> Ordering
fn cmp(&self, other: &CoapContentFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for CoapContentFormat
impl PartialEq for CoapContentFormat
source§fn eq(&self, other: &CoapContentFormat) -> bool
fn eq(&self, other: &CoapContentFormat) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CoapContentFormat
impl PartialOrd for CoapContentFormat
source§fn partial_cmp(&self, other: &CoapContentFormat) -> Option<Ordering>
fn partial_cmp(&self, other: &CoapContentFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more