message::{construct_path_string, construct_query_string, CoapMessage, CoapMessageCommon, CoapOption},
CoapMatch, CoapMessageCode, CoapMessageType, CoapOptionType, CoapRequestCode, ContentFormat, ETag, HopLimit,
/// This struct wraps around the more direct [CoapMessage] and allows easier definition of typical
pub fn new(type_: CoapMessageType, code: CoapRequestCode, uri: CoapUri) -> Result<CoapRequest, MessageTypeError> {
/// See [RFC 7252, Section 5.10.8.1](https://datatracker.ietf.org/doc/html/rfc7252#section-5.10.8.1)
/// See [RFC 7252, Section 5.10.3](https://datatracker.ietf.org/doc/html/rfc7252#section-5.10.3)
/// It is usually nonsensical to set this value to `true` if an If-Match-Expression has been set.
/// See [RFC 7252, Section 5.10.8.2](https://datatracker.ietf.org/doc/html/rfc7252#section-5.10.8.2)
.map_err(|e| MessageConversionError::InvalidOptionValue(None, OptionValueError::UriParsing(e)))?;
/// Converts this request into a [CoapMessage] that can be sent over a [CoapSession](crate::session::CoapSession).