1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* Artifact Keeper API
*
* Enterprise artifact registry supporting 45+ package formats.
*
* The version of the OpenAPI document: 1.2.1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// RotateWebhookSecretResponse : Response returned by the rotate-secret endpoint.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RotateWebhookSecretResponse {
#[serde(rename = "id")]
pub id: uuid::Uuid,
/// When the previously active secret stops being accepted.
#[serde(rename = "previous_secret_expires_at")]
pub previous_secret_expires_at: String,
/// Raw signing secret produced by this rotation. Shown exactly once.
#[serde(rename = "secret")]
pub secret: String,
#[serde(rename = "secret_digest")]
pub secret_digest: String,
}
impl RotateWebhookSecretResponse {
/// Response returned by the rotate-secret endpoint.
pub fn new(id: uuid::Uuid, previous_secret_expires_at: String, secret: String, secret_digest: String) -> RotateWebhookSecretResponse {
RotateWebhookSecretResponse {
id,
previous_secret_expires_at,
secret,
secret_digest,
}
}
}