google_cloud_bigquery_datapolicies_v1/model/
debug.rs

1// Copyright 2025 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15// Code generated by sidekick. DO NOT EDIT.
16
17#[allow(unused_imports)]
18use super::*;
19
20impl std::fmt::Debug for super::CreateDataPolicyRequest {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("CreateDataPolicyRequest");
23        debug_struct.field("parent", &self.parent);
24        debug_struct.field("data_policy", &self.data_policy);
25        if !self._unknown_fields.is_empty() {
26            debug_struct.field("_unknown_fields", &self._unknown_fields);
27        }
28        debug_struct.finish()
29    }
30}
31
32impl std::fmt::Debug for super::UpdateDataPolicyRequest {
33    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
34        let mut debug_struct = f.debug_struct("UpdateDataPolicyRequest");
35        debug_struct.field("data_policy", &self.data_policy);
36        debug_struct.field("update_mask", &self.update_mask);
37        if !self._unknown_fields.is_empty() {
38            debug_struct.field("_unknown_fields", &self._unknown_fields);
39        }
40        debug_struct.finish()
41    }
42}
43
44impl std::fmt::Debug for super::RenameDataPolicyRequest {
45    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
46        let mut debug_struct = f.debug_struct("RenameDataPolicyRequest");
47        debug_struct.field("name", &self.name);
48        debug_struct.field("new_data_policy_id", &self.new_data_policy_id);
49        if !self._unknown_fields.is_empty() {
50            debug_struct.field("_unknown_fields", &self._unknown_fields);
51        }
52        debug_struct.finish()
53    }
54}
55
56impl std::fmt::Debug for super::DeleteDataPolicyRequest {
57    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
58        let mut debug_struct = f.debug_struct("DeleteDataPolicyRequest");
59        debug_struct.field("name", &self.name);
60        if !self._unknown_fields.is_empty() {
61            debug_struct.field("_unknown_fields", &self._unknown_fields);
62        }
63        debug_struct.finish()
64    }
65}
66
67impl std::fmt::Debug for super::GetDataPolicyRequest {
68    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
69        let mut debug_struct = f.debug_struct("GetDataPolicyRequest");
70        debug_struct.field("name", &self.name);
71        if !self._unknown_fields.is_empty() {
72            debug_struct.field("_unknown_fields", &self._unknown_fields);
73        }
74        debug_struct.finish()
75    }
76}
77
78impl std::fmt::Debug for super::ListDataPoliciesRequest {
79    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
80        let mut debug_struct = f.debug_struct("ListDataPoliciesRequest");
81        debug_struct.field("parent", &self.parent);
82        debug_struct.field("page_size", &self.page_size);
83        debug_struct.field("page_token", &self.page_token);
84        debug_struct.field("filter", &self.filter);
85        if !self._unknown_fields.is_empty() {
86            debug_struct.field("_unknown_fields", &self._unknown_fields);
87        }
88        debug_struct.finish()
89    }
90}
91
92impl std::fmt::Debug for super::ListDataPoliciesResponse {
93    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
94        let mut debug_struct = f.debug_struct("ListDataPoliciesResponse");
95        debug_struct.field("data_policies", &self.data_policies);
96        debug_struct.field("next_page_token", &self.next_page_token);
97        if !self._unknown_fields.is_empty() {
98            debug_struct.field("_unknown_fields", &self._unknown_fields);
99        }
100        debug_struct.finish()
101    }
102}
103
104impl std::fmt::Debug for super::DataPolicy {
105    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
106        let mut debug_struct = f.debug_struct("DataPolicy");
107        debug_struct.field("name", &self.name);
108        debug_struct.field("data_policy_type", &self.data_policy_type);
109        debug_struct.field("data_policy_id", &self.data_policy_id);
110        debug_struct.field("matching_label", &self.matching_label);
111        debug_struct.field("policy", &self.policy);
112        if !self._unknown_fields.is_empty() {
113            debug_struct.field("_unknown_fields", &self._unknown_fields);
114        }
115        debug_struct.finish()
116    }
117}
118
119impl std::fmt::Debug for super::DataMaskingPolicy {
120    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
121        let mut debug_struct = f.debug_struct("DataMaskingPolicy");
122        debug_struct.field("masking_expression", &self.masking_expression);
123        if !self._unknown_fields.is_empty() {
124            debug_struct.field("_unknown_fields", &self._unknown_fields);
125        }
126        debug_struct.finish()
127    }
128}