parsec_interface/operations/
psa_generate_key.rs

1// Copyright 2019 Contributors to the Parsec project.
2// SPDX-License-Identifier: Apache-2.0
3//! # PsaGenerateKey operation
4//!
5//! Generate a key or a key pair.
6
7use super::psa_key_attributes::Attributes;
8
9/// Native object for creating a cryptographic key.
10#[derive(Clone, Debug)]
11pub struct Operation {
12    /// `key_name` specifies a name by which the service will identify the key. Key
13    /// name must be unique per application.
14    pub key_name: String,
15    /// `attributes` specifies the parameters to be associated with the key.
16    pub attributes: Attributes,
17}
18
19/// Native object for the result of creating a cryptographic key.
20///
21/// The true result is returned in the `status` field of the response.
22#[derive(Copy, Clone, Debug)]
23pub struct Result;