pub struct CmpResponse {
pub message_type: CmpMessageType,
pub transaction_id: Vec<u8>,
pub recip_nonce: Vec<u8>,
pub sender_nonce: Vec<u8>,
pub sender: String,
pub body_der: Vec<u8>,
}Expand description
CMP response message under construction.
The handler builds this struct and passes it to build_cmp_response
to produce the DER-encoded PKIMessage for the HTTP response.
Fields§
§message_type: CmpMessageTypeThe response message type (ip, cp, kup, rp, genp, pkiConf, error).
transaction_id: Vec<u8>Transaction identifier copied from the request.
recip_nonce: Vec<u8>Recipient nonce — copied from the request’s sender nonce.
sender_nonce: Vec<u8>Sender nonce — freshly generated by the server.
sender: StringServer sender name (CA subject DN).
body_der: Vec<u8>DER-encoded response body content.
Trait Implementations§
Source§impl Clone for CmpResponse
impl Clone for CmpResponse
Source§fn clone(&self) -> CmpResponse
fn clone(&self) -> CmpResponse
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CmpResponse
impl RefUnwindSafe for CmpResponse
impl Send for CmpResponse
impl Sync for CmpResponse
impl Unpin for CmpResponse
impl UnsafeUnpin for CmpResponse
impl UnwindSafe for CmpResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more