core_crypto_ffi/bundles/
welcome.rs1use core_crypto::prelude::ConversationId;
2#[cfg(target_family = "wasm")]
3use wasm_bindgen::prelude::*;
4
5#[derive(Debug)]
7#[cfg_attr(
8 target_family = "wasm",
9 wasm_bindgen(getter_with_clone),
10 derive(serde::Serialize, serde::Deserialize)
11)]
12#[cfg_attr(not(target_family = "wasm"), derive(uniffi::Record))]
13pub struct WelcomeBundle {
14 pub id: ConversationId,
16 pub crl_new_distribution_points: Option<Vec<String>>,
18}
19
20impl From<core_crypto::prelude::WelcomeBundle> for WelcomeBundle {
21 fn from(
22 core_crypto::prelude::WelcomeBundle {
23 id,
24 crl_new_distribution_points,
25 }: core_crypto::prelude::WelcomeBundle,
26 ) -> Self {
27 let crl_new_distribution_points = crl_new_distribution_points.into();
28 Self {
29 id,
30 crl_new_distribution_points,
31 }
32 }
33}