pub struct PackEncryptedOptions {
    pub protect_sender: bool,
    pub forward: bool,
    pub forward_headers: Option<HashMap<String, Value>>,
    pub messaging_service: Option<String>,
    pub enc_alg_auth: AuthCryptAlg,
    pub enc_alg_anon: AnonCryptAlg,
}Expand description
Allow fine configuration of packing process.
Fields§
§protect_sender: boolIf true and message is authenticated than information about sender will be protected from mediators, but
additional re-encryption will be required. For anonymous messages this property will be ignored.
forward: boolWhether the encrypted messages need to be wrapped into Forward messages to be sent to Mediators
as defined by the Forward protocol.
forward_headers: Option<HashMap<String, Value>>if forward is enabled these optional headers can be passed to the wrapping Forward messages.
If forward is disabled this property will be ignored.
messaging_service: Option<String>Identifier (DID URL) of messaging service (https://identity.foundation/didcomm-messaging/spec/#did-document-service-endpoint). If DID doc contains multiple messaging services it allows specify what service to use. If not present first service will be used.
enc_alg_auth: AuthCryptAlgAlgorithm used for authenticated encryption
enc_alg_anon: AnonCryptAlgAlgorithm used for anonymous encryption
Trait Implementations§
Source§impl Clone for PackEncryptedOptions
 
impl Clone for PackEncryptedOptions
Source§fn clone(&self) -> PackEncryptedOptions
 
fn clone(&self) -> PackEncryptedOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read more