Fix small code style inconsistency
This commit is contained in:
parent
481ca6b415
commit
7426a4e359
@ -33,6 +33,7 @@ pub struct OldVerifyKey {
|
|||||||
/// Timestamp when this key expired.
|
/// Timestamp when this key expired.
|
||||||
#[serde(with = "ruma_serde::time::ms_since_unix_epoch")]
|
#[serde(with = "ruma_serde::time::ms_since_unix_epoch")]
|
||||||
pub expired_ts: SystemTime,
|
pub expired_ts: SystemTime,
|
||||||
|
|
||||||
/// The Unpadded Base64 encoded key.
|
/// The Unpadded Base64 encoded key.
|
||||||
pub key: String,
|
pub key: String,
|
||||||
}
|
}
|
||||||
@ -51,13 +52,17 @@ impl OldVerifyKey {
|
|||||||
pub struct ServerKey {
|
pub struct ServerKey {
|
||||||
/// DNS name of the homeserver.
|
/// DNS name of the homeserver.
|
||||||
pub server_name: ServerNameBox,
|
pub server_name: ServerNameBox,
|
||||||
|
|
||||||
/// Public keys of the homeserver for verifying digital signatures.
|
/// Public keys of the homeserver for verifying digital signatures.
|
||||||
pub verify_keys: BTreeMap<ServerKeyId, VerifyKey>,
|
pub verify_keys: BTreeMap<ServerKeyId, VerifyKey>,
|
||||||
|
|
||||||
/// Public keys that the homeserver used to use and when it stopped using them.
|
/// Public keys that the homeserver used to use and when it stopped using them.
|
||||||
pub old_verify_keys: BTreeMap<ServerKeyId, OldVerifyKey>,
|
pub old_verify_keys: BTreeMap<ServerKeyId, OldVerifyKey>,
|
||||||
|
|
||||||
/// Digital signatures of this object signed using the verify_keys. Map of
|
/// Digital signatures of this object signed using the verify_keys. Map of
|
||||||
/// server name to keys by key ID
|
/// server name to keys by key ID
|
||||||
pub signatures: BTreeMap<ServerNameBox, BTreeMap<ServerKeyId, String>>,
|
pub signatures: BTreeMap<ServerNameBox, BTreeMap<ServerKeyId, String>>,
|
||||||
|
|
||||||
/// Timestamp when the keys should be refreshed. This field MUST be ignored in room
|
/// Timestamp when the keys should be refreshed. This field MUST be ignored in room
|
||||||
/// versions 1, 2, 3, and 4.
|
/// versions 1, 2, 3, and 4.
|
||||||
#[serde(with = "ruma_serde::time::ms_since_unix_epoch")]
|
#[serde(with = "ruma_serde::time::ms_since_unix_epoch")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user