google_cloud_shell_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::Environment {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("Environment");
23        debug_struct.field("name", &self.name);
24        debug_struct.field("id", &self.id);
25        debug_struct.field("docker_image", &self.docker_image);
26        debug_struct.field("state", &self.state);
27        debug_struct.field("web_host", &self.web_host);
28        debug_struct.field("ssh_username", &self.ssh_username);
29        debug_struct.field("ssh_host", &self.ssh_host);
30        debug_struct.field("ssh_port", &self.ssh_port);
31        debug_struct.field("public_keys", &self.public_keys);
32        if !self._unknown_fields.is_empty() {
33            debug_struct.field("_unknown_fields", &self._unknown_fields);
34        }
35        debug_struct.finish()
36    }
37}
38
39impl std::fmt::Debug for super::GetEnvironmentRequest {
40    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
41        let mut debug_struct = f.debug_struct("GetEnvironmentRequest");
42        debug_struct.field("name", &self.name);
43        if !self._unknown_fields.is_empty() {
44            debug_struct.field("_unknown_fields", &self._unknown_fields);
45        }
46        debug_struct.finish()
47    }
48}
49
50impl std::fmt::Debug for super::CreateEnvironmentMetadata {
51    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
52        let mut debug_struct = f.debug_struct("CreateEnvironmentMetadata");
53        if !self._unknown_fields.is_empty() {
54            debug_struct.field("_unknown_fields", &self._unknown_fields);
55        }
56        debug_struct.finish()
57    }
58}
59
60impl std::fmt::Debug for super::DeleteEnvironmentMetadata {
61    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
62        let mut debug_struct = f.debug_struct("DeleteEnvironmentMetadata");
63        if !self._unknown_fields.is_empty() {
64            debug_struct.field("_unknown_fields", &self._unknown_fields);
65        }
66        debug_struct.finish()
67    }
68}
69
70impl std::fmt::Debug for super::StartEnvironmentRequest {
71    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
72        let mut debug_struct = f.debug_struct("StartEnvironmentRequest");
73        debug_struct.field("name", &self.name);
74        debug_struct.field("access_token", &self.access_token);
75        debug_struct.field("public_keys", &self.public_keys);
76        if !self._unknown_fields.is_empty() {
77            debug_struct.field("_unknown_fields", &self._unknown_fields);
78        }
79        debug_struct.finish()
80    }
81}
82
83impl std::fmt::Debug for super::AuthorizeEnvironmentRequest {
84    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
85        let mut debug_struct = f.debug_struct("AuthorizeEnvironmentRequest");
86        debug_struct.field("name", &self.name);
87        debug_struct.field("access_token", &self.access_token);
88        debug_struct.field("id_token", &self.id_token);
89        debug_struct.field("expire_time", &self.expire_time);
90        if !self._unknown_fields.is_empty() {
91            debug_struct.field("_unknown_fields", &self._unknown_fields);
92        }
93        debug_struct.finish()
94    }
95}
96
97impl std::fmt::Debug for super::AuthorizeEnvironmentResponse {
98    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
99        let mut debug_struct = f.debug_struct("AuthorizeEnvironmentResponse");
100        if !self._unknown_fields.is_empty() {
101            debug_struct.field("_unknown_fields", &self._unknown_fields);
102        }
103        debug_struct.finish()
104    }
105}
106
107impl std::fmt::Debug for super::AuthorizeEnvironmentMetadata {
108    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
109        let mut debug_struct = f.debug_struct("AuthorizeEnvironmentMetadata");
110        if !self._unknown_fields.is_empty() {
111            debug_struct.field("_unknown_fields", &self._unknown_fields);
112        }
113        debug_struct.finish()
114    }
115}
116
117impl std::fmt::Debug for super::StartEnvironmentMetadata {
118    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
119        let mut debug_struct = f.debug_struct("StartEnvironmentMetadata");
120        debug_struct.field("state", &self.state);
121        if !self._unknown_fields.is_empty() {
122            debug_struct.field("_unknown_fields", &self._unknown_fields);
123        }
124        debug_struct.finish()
125    }
126}
127
128impl std::fmt::Debug for super::StartEnvironmentResponse {
129    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
130        let mut debug_struct = f.debug_struct("StartEnvironmentResponse");
131        debug_struct.field("environment", &self.environment);
132        if !self._unknown_fields.is_empty() {
133            debug_struct.field("_unknown_fields", &self._unknown_fields);
134        }
135        debug_struct.finish()
136    }
137}
138
139impl std::fmt::Debug for super::AddPublicKeyRequest {
140    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
141        let mut debug_struct = f.debug_struct("AddPublicKeyRequest");
142        debug_struct.field("environment", &self.environment);
143        debug_struct.field("key", &self.key);
144        if !self._unknown_fields.is_empty() {
145            debug_struct.field("_unknown_fields", &self._unknown_fields);
146        }
147        debug_struct.finish()
148    }
149}
150
151impl std::fmt::Debug for super::AddPublicKeyResponse {
152    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
153        let mut debug_struct = f.debug_struct("AddPublicKeyResponse");
154        debug_struct.field("key", &self.key);
155        if !self._unknown_fields.is_empty() {
156            debug_struct.field("_unknown_fields", &self._unknown_fields);
157        }
158        debug_struct.finish()
159    }
160}
161
162impl std::fmt::Debug for super::AddPublicKeyMetadata {
163    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
164        let mut debug_struct = f.debug_struct("AddPublicKeyMetadata");
165        if !self._unknown_fields.is_empty() {
166            debug_struct.field("_unknown_fields", &self._unknown_fields);
167        }
168        debug_struct.finish()
169    }
170}
171
172impl std::fmt::Debug for super::RemovePublicKeyRequest {
173    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
174        let mut debug_struct = f.debug_struct("RemovePublicKeyRequest");
175        debug_struct.field("environment", &self.environment);
176        debug_struct.field("key", &self.key);
177        if !self._unknown_fields.is_empty() {
178            debug_struct.field("_unknown_fields", &self._unknown_fields);
179        }
180        debug_struct.finish()
181    }
182}
183
184impl std::fmt::Debug for super::RemovePublicKeyResponse {
185    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
186        let mut debug_struct = f.debug_struct("RemovePublicKeyResponse");
187        if !self._unknown_fields.is_empty() {
188            debug_struct.field("_unknown_fields", &self._unknown_fields);
189        }
190        debug_struct.finish()
191    }
192}
193
194impl std::fmt::Debug for super::RemovePublicKeyMetadata {
195    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
196        let mut debug_struct = f.debug_struct("RemovePublicKeyMetadata");
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::CloudShellErrorDetails {
205    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
206        let mut debug_struct = f.debug_struct("CloudShellErrorDetails");
207        debug_struct.field("code", &self.code);
208        if !self._unknown_fields.is_empty() {
209            debug_struct.field("_unknown_fields", &self._unknown_fields);
210        }
211        debug_struct.finish()
212    }
213}