pub struct CoapEstRequest {
pub operation: EstOperation,
pub label: Option<String>,
pub method: CoapMethod,
pub message: CoapMessage,
}Expand description
CoAP request representing an EST-coaps operation.
RFC 9148 §5.1: EST-coaps URIs follow the pattern: coaps://host/.well-known/est/{operation} where {operation} uses the abbreviated names from RFC 9148 §5.1:
- /cacerts -> /cacerts (GET)
- /sen -> /simpleenroll (POST)
- /sren -> /simplereenroll (POST)
- /skg -> /serverkeygen (POST)
- /att -> /csrattrs (GET)
- /crts -> /cacerts (GET, alias)
Fields§
§operation: EstOperationThe decoded EST operation.
label: Option<String>The optional EST label preceding the operation segment.
RFC 9148 §5.1 / RFC 7030 §3.2.2 allow an arbitrary label between the
/.well-known/est/ prefix and the operation (e.g.
/.well-known/est/{label}/sen). None means the unlabeled default
endpoint. The label selects the CA and the per-label access-control
policy applied at issuance.
method: CoapMethodThe CoAP method used.
message: CoapMessageThe original CoAP message.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CoapEstRequest
impl RefUnwindSafe for CoapEstRequest
impl Send for CoapEstRequest
impl Sync for CoapEstRequest
impl Unpin for CoapEstRequest
impl UnsafeUnpin for CoapEstRequest
impl UnwindSafe for CoapEstRequest
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