Struct ruma_federation_api::discovery::ServerSigningKeys[][src]

#[non_exhaustive]
pub struct ServerSigningKeys { pub server_name: ServerNameBox, pub verify_keys: BTreeMap<ServerSigningKeyId, VerifyKey>, pub old_verify_keys: BTreeMap<ServerSigningKeyId, OldVerifyKey>, pub signatures: BTreeMap<ServerNameBox, BTreeMap<ServerSigningKeyId, String>>, pub valid_until_ts: SystemTime, }

Queried server key, signed by the notary server.

Fields (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.
server_name: ServerNameBox

DNS name of the homeserver.

verify_keys: BTreeMap<ServerSigningKeyId, VerifyKey>

Public keys of the homeserver for verifying digital signatures.

old_verify_keys: BTreeMap<ServerSigningKeyId, OldVerifyKey>

Public keys that the homeserver used to use and when it stopped using them.

signatures: BTreeMap<ServerNameBox, BTreeMap<ServerSigningKeyId, String>>

Digital signatures of this object signed using the verify_keys. Map of server name to keys by key ID

valid_until_ts: SystemTime

Timestamp when the keys should be refreshed. This field MUST be ignored in room versions 1, 2, 3, and 4.

Implementations

impl ServerSigningKeys[src]

pub fn new(server_name: ServerNameBox, valid_until_ts: SystemTime) -> Self[src]

Creates a new ServerSigningKeys with the given server name and validity timestamp.

All other fields will be empty.

Trait Implementations

impl Clone for ServerSigningKeys[src]

impl Debug for ServerSigningKeys[src]

impl<'de> Deserialize<'de> for ServerSigningKeys[src]

impl From<ServerSigningKeys> for Response[src]

impl Serialize for ServerSigningKeys[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.