TextFormatEncodingOptions.swift 767 B

12345678910111213141516171819202122
  1. // Sources/SwiftProtobuf/TextFormatEncodingOptions.swift - Text format encoding options
  2. //
  3. // Copyright (c) 2014 - 2019 Apple Inc. and the project authors
  4. // Licensed under Apache License v2.0 with Runtime Library Exception
  5. //
  6. // See LICENSE.txt for license information:
  7. // https://github.com/apple/swift-protobuf/blob/main/LICENSE.txt
  8. //
  9. // -----------------------------------------------------------------------------
  10. ///
  11. /// Text format encoding options
  12. ///
  13. // -----------------------------------------------------------------------------
  14. /// Options for TextFormatEncoding.
  15. public struct TextFormatEncodingOptions: Sendable {
  16. /// Default: Do print unknown fields using numeric notation
  17. public var printUnknownFields: Bool = true
  18. public init() {}
  19. }