pub struct Certificates {
pub private_key: RsaPrivateKey,
pub public_key_der: Vec<u8>,
pub signature_v1: Vec<u8>,
pub signature_v2: Vec<u8>,
pub expires_at: DateTime<Utc>,
pub refresh_after: DateTime<Utc>,
}
Expand description
A chat signing certificate.
Fields§
§private_key: RsaPrivateKey
The RSA private key.
public_key_der: Vec<u8>
The RSA public key encoded as DER.
signature_v1: Vec<u8>
§signature_v2: Vec<u8>
§expires_at: DateTime<Utc>
§refresh_after: DateTime<Utc>
Trait Implementations§
Source§impl Clone for Certificates
impl Clone for Certificates
Source§fn clone(&self) -> Certificates
fn clone(&self) -> Certificates
Returns a copy 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 Certificates
impl RefUnwindSafe for Certificates
impl Send for Certificates
impl Sync for Certificates
impl Unpin for Certificates
impl UnwindSafe for Certificates
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)