1 // Protocol Buffers - Google's data interchange format 2 // Copyright 2023 Google LLC. All rights reserved. 3 // 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file or at 6 // https://developers.google.com/open-source/licenses/bsd 7 8 #include "absl/strings/string_view.h" 9 #include "google/protobuf/compiler/rust/accessors/accessor_case.h" 10 #include "google/protobuf/compiler/rust/accessors/generator.h" 11 #include "google/protobuf/compiler/rust/context.h" 12 #include "google/protobuf/descriptor.h" 13 14 namespace google { 15 namespace protobuf { 16 namespace compiler { 17 namespace rust { 18 InMsgImpl(Context & ctx,const FieldDescriptor & field,AccessorCase accessor_case) const19void UnsupportedField::InMsgImpl(Context& ctx, const FieldDescriptor& field, 20 AccessorCase accessor_case) const { 21 ctx.Emit({{"reason", reason_}}, R"rs( 22 // Unsupported! :( Reason: $reason$ 23 )rs"); 24 ctx.printer().PrintRaw("\n"); 25 } 26 27 } // namespace rust 28 } // namespace compiler 29 } // namespace protobuf 30 } // namespace google 31