pub struct TestCerts {
pub cert_pem: String,
pub key_pem: String,
}Expand description
A self-signed certificate and its key, in memory.
The certificate is its own authority, so trusting it as a peer’s leaf certificate and trusting it as a CA amount to the same thing here.
Fields§
§cert_pem: String§key_pem: StringAuto Trait Implementations§
impl Freeze for TestCerts
impl RefUnwindSafe for TestCerts
impl Send for TestCerts
impl Sync for TestCerts
impl Unpin for TestCerts
impl UnwindSafe for TestCerts
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