Struct ruma::api::federation::discovery::OldVerifyKey
source · [−]pub struct OldVerifyKey {
pub expired_ts: MilliSecondsSinceUnixEpoch,
pub key: Base64<Standard, Vec<u8, Global>>,
}
Available on crate feature
api
and (crate features federation-api-c
or federation-api-s
) only.Expand description
A key the server used to use, but stopped using.
Fields
expired_ts: MilliSecondsSinceUnixEpoch
Timestamp when this key expired.
key: Base64<Standard, Vec<u8, Global>>
The unpadded base64-encoded key.
Implementations
sourceimpl OldVerifyKey
impl OldVerifyKey
sourcepub fn new(
expired_ts: MilliSecondsSinceUnixEpoch,
key: Base64<Standard, Vec<u8, Global>>
) -> OldVerifyKey
pub fn new(
expired_ts: MilliSecondsSinceUnixEpoch,
key: Base64<Standard, Vec<u8, Global>>
) -> OldVerifyKey
Creates a new OldVerifyKey
with the given expiry time and key.
Trait Implementations
sourceimpl Clone for OldVerifyKey
impl Clone for OldVerifyKey
sourcefn clone(&self) -> OldVerifyKey
fn clone(&self) -> OldVerifyKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for OldVerifyKey
impl Debug for OldVerifyKey
sourceimpl<'de> Deserialize<'de> for OldVerifyKey
impl<'de> Deserialize<'de> for OldVerifyKey
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<OldVerifyKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<OldVerifyKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for OldVerifyKey
impl Serialize for OldVerifyKey
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for OldVerifyKey
impl Send for OldVerifyKey
impl Sync for OldVerifyKey
impl Unpin for OldVerifyKey
impl UnwindSafe for OldVerifyKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more