parsec_interface/operations/
psa_export_key.rs

1// Copyright 2020 Contributors to the Parsec project.
2// SPDX-License-Identifier: Apache-2.0
3//! # PsaExportKey operation
4//!
5//! Export a key in binary format. See the book for the format description.
6
7use derivative::Derivative;
8/// Native object for key exporting operation.
9#[derive(Debug)]
10pub struct Operation {
11    /// `key_name` identifies the key that will be exported.
12    pub key_name: String,
13}
14
15/// Native object for result of key export operation.
16#[derive(Derivative)]
17#[derivative(Debug)]
18pub struct Result {
19    /// `data` holds the bytes defining the key, formatted as specified
20    /// by the provider for which the request was made.
21    #[derivative(Debug = "ignore")] // Don't output at debug - potentially contains private key
22    pub data: secrecy::Secret<Vec<u8>>,
23}