diff --git a/ruma-events/src/key/verification/start.rs b/ruma-events/src/key/verification/start.rs index acc361b1..7fbce1ec 100644 --- a/ruma-events/src/key/verification/start.rs +++ b/ruma-events/src/key/verification/start.rs @@ -27,36 +27,37 @@ pub enum StartEventContent { /// The payload of an *m.key.verification.start* event using the *m.sas.v1* method. #[derive(Clone, Debug, Deserialize, Serialize)] +#[non_exhaustive] pub struct MSasV1Content { /// The device ID which is initiating the process. - pub(crate) from_device: Box, + pub from_device: Box, /// An opaque identifier for the verification process. /// /// Must be unique with respect to the devices involved. Must be the same as the /// `transaction_id` given in the *m.key.verification.request* if this process is originating /// from a request. - pub(crate) transaction_id: String, + pub transaction_id: String, /// The key agreement protocols the sending device understands. /// /// Must include at least `curve25519`. - pub(crate) key_agreement_protocols: Vec, + pub key_agreement_protocols: Vec, /// The hash methods the sending device understands. /// /// Must include at least `sha256`. - pub(crate) hashes: Vec, + pub hashes: Vec, /// The message authentication codes that the sending device understands. /// /// Must include at least `hkdf-hmac-sha256`. - pub(crate) message_authentication_codes: Vec, + pub message_authentication_codes: Vec, /// The SAS methods the sending device (and the sending device's user) understands. /// /// Must include at least `decimal`. Optionally can include `emoji`. - pub(crate) short_authentication_string: Vec, + pub short_authentication_string: Vec, } /// Options for creating an `MSasV1Content` with `MSasV1Content::new`.