bitwarden_organization_crypto/wasm.rs
1//! The wasm module holds the wasm bindings for [`InviteSecret`], which crosses the WASM boundary as
2//! its base64url string form. Encoding/decoding is limited to the `From<&InviteSecret> for String`
3//! and `FromStr` implementations to simplify maintenance.
4use crate::invite::InviteSecret;
5
6bitwarden_ffi::impl_wire_string!(
7 InviteSecret,
8 parse = |wire: String| wire.parse(),
9 format = |secret: InviteSecret| String::from(&secret),
10);