google_cloud_longrunning/model/
debug.rs

1// Copyright 2024 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::Operation {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("Operation");
23        debug_struct.field("name", &self.name);
24        debug_struct.field("metadata", &self.metadata);
25        debug_struct.field("done", &self.done);
26        debug_struct.field("result", &self.result);
27        if !self._unknown_fields.is_empty() {
28            debug_struct.field("_unknown_fields", &self._unknown_fields);
29        }
30        debug_struct.finish()
31    }
32}
33
34impl std::fmt::Debug for super::GetOperationRequest {
35    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
36        let mut debug_struct = f.debug_struct("GetOperationRequest");
37        debug_struct.field("name", &self.name);
38        if !self._unknown_fields.is_empty() {
39            debug_struct.field("_unknown_fields", &self._unknown_fields);
40        }
41        debug_struct.finish()
42    }
43}
44
45impl std::fmt::Debug for super::ListOperationsRequest {
46    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
47        let mut debug_struct = f.debug_struct("ListOperationsRequest");
48        debug_struct.field("name", &self.name);
49        debug_struct.field("filter", &self.filter);
50        debug_struct.field("page_size", &self.page_size);
51        debug_struct.field("page_token", &self.page_token);
52        if !self._unknown_fields.is_empty() {
53            debug_struct.field("_unknown_fields", &self._unknown_fields);
54        }
55        debug_struct.finish()
56    }
57}
58
59impl std::fmt::Debug for super::ListOperationsResponse {
60    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
61        let mut debug_struct = f.debug_struct("ListOperationsResponse");
62        debug_struct.field("operations", &self.operations);
63        debug_struct.field("next_page_token", &self.next_page_token);
64        if !self._unknown_fields.is_empty() {
65            debug_struct.field("_unknown_fields", &self._unknown_fields);
66        }
67        debug_struct.finish()
68    }
69}
70
71impl std::fmt::Debug for super::CancelOperationRequest {
72    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
73        let mut debug_struct = f.debug_struct("CancelOperationRequest");
74        debug_struct.field("name", &self.name);
75        if !self._unknown_fields.is_empty() {
76            debug_struct.field("_unknown_fields", &self._unknown_fields);
77        }
78        debug_struct.finish()
79    }
80}
81
82impl std::fmt::Debug for super::DeleteOperationRequest {
83    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
84        let mut debug_struct = f.debug_struct("DeleteOperationRequest");
85        debug_struct.field("name", &self.name);
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::WaitOperationRequest {
94    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
95        let mut debug_struct = f.debug_struct("WaitOperationRequest");
96        debug_struct.field("name", &self.name);
97        debug_struct.field("timeout", &self.timeout);
98        if !self._unknown_fields.is_empty() {
99            debug_struct.field("_unknown_fields", &self._unknown_fields);
100        }
101        debug_struct.finish()
102    }
103}
104
105impl std::fmt::Debug for super::OperationInfo {
106    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
107        let mut debug_struct = f.debug_struct("OperationInfo");
108        debug_struct.field("response_type", &self.response_type);
109        debug_struct.field("metadata_type", &self.metadata_type);
110        if !self._unknown_fields.is_empty() {
111            debug_struct.field("_unknown_fields", &self._unknown_fields);
112        }
113        debug_struct.finish()
114    }
115}