Skip to main content

tf_types/generated/
approval_response.rs

1// GENERATED by `tf-schema codegen --target rust` — DO NOT EDIT BY HAND.
2
3#![allow(unused_imports, non_camel_case_types, non_snake_case, clippy::all)]
4
5use serde::{Deserialize, Serialize};
6use super::*;
7
8/// A signed response to an ApprovalRequest.
9#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
10pub struct ApprovalResponse {
11    /// Version of the approval-response schema itself.
12    pub response_version: ApprovalResponse_ResponseVersion,
13    /// Identifier of the ApprovalRequest this responds to.
14    pub request_id: String,
15    /// The human's decision.
16    pub decision: ApprovalResponse_Decision,
17    /// Actor that signed this response.
18    pub responder: ActorId,
19    /// Optional free-text note from the responder.
20    #[serde(skip_serializing_if = "Option::is_none", default)]
21    pub note: Option<String>,
22    /// When the response was signed.
23    pub signed_at: Timestamp,
24    /// Signature envelope over the canonical form of this response with signature.signature cleared.
25    pub signature: SignatureEnvelope,
26}
27
28/// The human's decision.
29#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
30pub enum ApprovalResponse_Decision {
31    #[serde(rename = "approve")]
32    Approve,
33    #[serde(rename = "deny")]
34    Deny,
35}
36
37/// Version of the approval-response schema itself.
38#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
39pub enum ApprovalResponse_ResponseVersion {
40    #[serde(rename = "1")]
41    V1,
42}