google_cloud_binaryauthorization_v1/model/
debug.rs1#[allow(unused_imports)]
18use super::*;
19
20impl std::fmt::Debug for super::Policy {
21 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22 let mut debug_struct = f.debug_struct("Policy");
23 debug_struct.field("name", &self.name);
24 debug_struct.field("description", &self.description);
25 debug_struct.field(
26 "global_policy_evaluation_mode",
27 &self.global_policy_evaluation_mode,
28 );
29 debug_struct.field(
30 "admission_whitelist_patterns",
31 &self.admission_whitelist_patterns,
32 );
33 debug_struct.field("cluster_admission_rules", &self.cluster_admission_rules);
34 debug_struct.field(
35 "kubernetes_namespace_admission_rules",
36 &self.kubernetes_namespace_admission_rules,
37 );
38 debug_struct.field(
39 "kubernetes_service_account_admission_rules",
40 &self.kubernetes_service_account_admission_rules,
41 );
42 debug_struct.field(
43 "istio_service_identity_admission_rules",
44 &self.istio_service_identity_admission_rules,
45 );
46 debug_struct.field("default_admission_rule", &self.default_admission_rule);
47 debug_struct.field("update_time", &self.update_time);
48 if !self._unknown_fields.is_empty() {
49 debug_struct.field("_unknown_fields", &self._unknown_fields);
50 }
51 debug_struct.finish()
52 }
53}
54
55impl std::fmt::Debug for super::AdmissionWhitelistPattern {
56 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
57 let mut debug_struct = f.debug_struct("AdmissionWhitelistPattern");
58 debug_struct.field("name_pattern", &self.name_pattern);
59 if !self._unknown_fields.is_empty() {
60 debug_struct.field("_unknown_fields", &self._unknown_fields);
61 }
62 debug_struct.finish()
63 }
64}
65
66impl std::fmt::Debug for super::AdmissionRule {
67 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
68 let mut debug_struct = f.debug_struct("AdmissionRule");
69 debug_struct.field("evaluation_mode", &self.evaluation_mode);
70 debug_struct.field("require_attestations_by", &self.require_attestations_by);
71 debug_struct.field("enforcement_mode", &self.enforcement_mode);
72 if !self._unknown_fields.is_empty() {
73 debug_struct.field("_unknown_fields", &self._unknown_fields);
74 }
75 debug_struct.finish()
76 }
77}
78
79impl std::fmt::Debug for super::Attestor {
80 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
81 let mut debug_struct = f.debug_struct("Attestor");
82 debug_struct.field("name", &self.name);
83 debug_struct.field("description", &self.description);
84 debug_struct.field("update_time", &self.update_time);
85 debug_struct.field("attestor_type", &self.attestor_type);
86 if !self._unknown_fields.is_empty() {
87 debug_struct.field("_unknown_fields", &self._unknown_fields);
88 }
89 debug_struct.finish()
90 }
91}
92
93impl std::fmt::Debug for super::UserOwnedGrafeasNote {
94 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
95 let mut debug_struct = f.debug_struct("UserOwnedGrafeasNote");
96 debug_struct.field("note_reference", &self.note_reference);
97 debug_struct.field("public_keys", &self.public_keys);
98 debug_struct.field(
99 "delegation_service_account_email",
100 &self.delegation_service_account_email,
101 );
102 if !self._unknown_fields.is_empty() {
103 debug_struct.field("_unknown_fields", &self._unknown_fields);
104 }
105 debug_struct.finish()
106 }
107}
108
109impl std::fmt::Debug for super::PkixPublicKey {
110 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
111 let mut debug_struct = f.debug_struct("PkixPublicKey");
112 debug_struct.field("public_key_pem", &self.public_key_pem);
113 debug_struct.field("signature_algorithm", &self.signature_algorithm);
114 if !self._unknown_fields.is_empty() {
115 debug_struct.field("_unknown_fields", &self._unknown_fields);
116 }
117 debug_struct.finish()
118 }
119}
120
121impl std::fmt::Debug for super::AttestorPublicKey {
122 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
123 let mut debug_struct = f.debug_struct("AttestorPublicKey");
124 debug_struct.field("comment", &self.comment);
125 debug_struct.field("id", &self.id);
126 debug_struct.field("public_key", &self.public_key);
127 if !self._unknown_fields.is_empty() {
128 debug_struct.field("_unknown_fields", &self._unknown_fields);
129 }
130 debug_struct.finish()
131 }
132}
133
134impl std::fmt::Debug for super::GetPolicyRequest {
135 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
136 let mut debug_struct = f.debug_struct("GetPolicyRequest");
137 debug_struct.field("name", &self.name);
138 if !self._unknown_fields.is_empty() {
139 debug_struct.field("_unknown_fields", &self._unknown_fields);
140 }
141 debug_struct.finish()
142 }
143}
144
145impl std::fmt::Debug for super::UpdatePolicyRequest {
146 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
147 let mut debug_struct = f.debug_struct("UpdatePolicyRequest");
148 debug_struct.field("policy", &self.policy);
149 if !self._unknown_fields.is_empty() {
150 debug_struct.field("_unknown_fields", &self._unknown_fields);
151 }
152 debug_struct.finish()
153 }
154}
155
156impl std::fmt::Debug for super::CreateAttestorRequest {
157 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
158 let mut debug_struct = f.debug_struct("CreateAttestorRequest");
159 debug_struct.field("parent", &self.parent);
160 debug_struct.field("attestor_id", &self.attestor_id);
161 debug_struct.field("attestor", &self.attestor);
162 if !self._unknown_fields.is_empty() {
163 debug_struct.field("_unknown_fields", &self._unknown_fields);
164 }
165 debug_struct.finish()
166 }
167}
168
169impl std::fmt::Debug for super::GetAttestorRequest {
170 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
171 let mut debug_struct = f.debug_struct("GetAttestorRequest");
172 debug_struct.field("name", &self.name);
173 if !self._unknown_fields.is_empty() {
174 debug_struct.field("_unknown_fields", &self._unknown_fields);
175 }
176 debug_struct.finish()
177 }
178}
179
180impl std::fmt::Debug for super::UpdateAttestorRequest {
181 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
182 let mut debug_struct = f.debug_struct("UpdateAttestorRequest");
183 debug_struct.field("attestor", &self.attestor);
184 if !self._unknown_fields.is_empty() {
185 debug_struct.field("_unknown_fields", &self._unknown_fields);
186 }
187 debug_struct.finish()
188 }
189}
190
191impl std::fmt::Debug for super::ListAttestorsRequest {
192 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
193 let mut debug_struct = f.debug_struct("ListAttestorsRequest");
194 debug_struct.field("parent", &self.parent);
195 debug_struct.field("page_size", &self.page_size);
196 debug_struct.field("page_token", &self.page_token);
197 if !self._unknown_fields.is_empty() {
198 debug_struct.field("_unknown_fields", &self._unknown_fields);
199 }
200 debug_struct.finish()
201 }
202}
203
204impl std::fmt::Debug for super::ListAttestorsResponse {
205 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
206 let mut debug_struct = f.debug_struct("ListAttestorsResponse");
207 debug_struct.field("attestors", &self.attestors);
208 debug_struct.field("next_page_token", &self.next_page_token);
209 if !self._unknown_fields.is_empty() {
210 debug_struct.field("_unknown_fields", &self._unknown_fields);
211 }
212 debug_struct.finish()
213 }
214}
215
216impl std::fmt::Debug for super::DeleteAttestorRequest {
217 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
218 let mut debug_struct = f.debug_struct("DeleteAttestorRequest");
219 debug_struct.field("name", &self.name);
220 if !self._unknown_fields.is_empty() {
221 debug_struct.field("_unknown_fields", &self._unknown_fields);
222 }
223 debug_struct.finish()
224 }
225}
226
227impl std::fmt::Debug for super::GetSystemPolicyRequest {
228 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
229 let mut debug_struct = f.debug_struct("GetSystemPolicyRequest");
230 debug_struct.field("name", &self.name);
231 if !self._unknown_fields.is_empty() {
232 debug_struct.field("_unknown_fields", &self._unknown_fields);
233 }
234 debug_struct.finish()
235 }
236}
237
238impl std::fmt::Debug for super::ValidateAttestationOccurrenceRequest {
239 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
240 let mut debug_struct = f.debug_struct("ValidateAttestationOccurrenceRequest");
241 debug_struct.field("attestor", &self.attestor);
242 debug_struct.field("attestation", &self.attestation);
243 debug_struct.field("occurrence_note", &self.occurrence_note);
244 debug_struct.field("occurrence_resource_uri", &self.occurrence_resource_uri);
245 if !self._unknown_fields.is_empty() {
246 debug_struct.field("_unknown_fields", &self._unknown_fields);
247 }
248 debug_struct.finish()
249 }
250}
251
252impl std::fmt::Debug for super::ValidateAttestationOccurrenceResponse {
253 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
254 let mut debug_struct = f.debug_struct("ValidateAttestationOccurrenceResponse");
255 debug_struct.field("result", &self.result);
256 debug_struct.field("denial_reason", &self.denial_reason);
257 if !self._unknown_fields.is_empty() {
258 debug_struct.field("_unknown_fields", &self._unknown_fields);
259 }
260 debug_struct.finish()
261 }
262}