#[non_exhaustive]pub struct SelectedCredential {
pub identity: Arc<Identity<'static>>,
pub signer: Box<dyn Signer>,
pub ocsp: Option<Arc<[u8]>>,
}
Expand description
A packaged-together certificate chain and one-time-use signer.
This is used in the ClientCredentialResolver
and ServerCredentialResolver
traits
as the return value of their resolve()
methods.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.identity: Arc<Identity<'static>>
The certificate chain or raw public key.
signer: Box<dyn Signer>
The signing key matching the identity
.
ocsp: Option<Arc<[u8]>>
An optional OCSP response from the certificate issuer, attesting to its continued validity.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SelectedCredential
impl !RefUnwindSafe for SelectedCredential
impl Send for SelectedCredential
impl Sync for SelectedCredential
impl Unpin for SelectedCredential
impl !UnwindSafe for SelectedCredential
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