pub fn as_content(&self) -> AcceptEventContent {
        let accepted_protocols = AcceptedProtocols::default();

        AcceptEventContent {
            transaction_id: self.verification_flow_id.to_string(),
            method: AcceptMethod::MSasV1(
                AcceptV1ContentInit {
                    commitment: self.state.commitment.clone(),
                    hash: accepted_protocols.hash,
                    key_agreement_protocol: accepted_protocols.key_agreement_protocol,
                    message_authentication_code: accepted_protocols.message_auth_code,
                    short_authentication_string: self
                        .state
                        .protocol_definitions
                        .short_authentication_string
                        .clone(),
                }
                .into(),
            ),
        }
    }
/// Get the content for the accept event.
///
/// The content needs to be sent to the other device.
///
/// This should be sent out automatically if the SAS verification flow has
/// been started because of a
/// m.key.verification.request -> m.key.verification.ready flow.
Get the content for the accept event.
The content needs to be sent to the other device.

This should be sent out automatically if the SAS verification flow has
been started because of a
m.key.verification.request -> m.key.verification.ready flow.
Get the content for the accept event . The content needs to be sent to the other device . This should be sent out automatically if the SAS verification flow has been started because of a m . key . verification . request - > m . key . verification . ready flow .
pub fn as_content(&self) -> AcceptEventContent {
        let accepted_protocols = AcceptedProtocols::default();
        AcceptEventContent {
            transaction_id: self.verification_flow_id.to_string(),
            method: AcceptMethod::MSasV1(
                AcceptV1ContentInit {
                    commitment: self.state.commitment.clone(),
                    hash: accepted_protocols.hash,
                    key_agreement_protocol: accepted_protocols.key_agreement_protocol,
                    message_authentication_code: accepted_protocols.message_auth_code,
                    short_authentication_string: self
                        .state
                        .protocol_definitions
                        .short_authentication_string
                        .clone(),
                }
                .into(),
            ),
        }
    }
pub fn as_content ( & self ) -> AcceptEventContent { let accepted_protocols = AcceptedProtocols :: default ( ) ; AcceptEventContent { transaction_id : self . verification_flow_id . to_string ( ) , method : AcceptMethod :: MSasV1 ( AcceptV1ContentInit { commitment : self . state . commitment . clone ( ) , hash : accepted_protocols . hash , key_agreement_protocol : accepted_protocols . key_agreement_protocol , message_authentication_code : accepted_protocols . message_auth_code , short_authentication_string : self . state . protocol_definitions . short_authentication_string . clone ( ) , } . into ( ) , ) , } }
Get the content for the accept event.
Get the content for the accept event .
&self
&self