Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4100

Extract Rust read/write struct methods into a trait

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.17.0
    • Rust - Compiler
    • None

    Description

      Each struct/enum/union has two auto-generated methods:

      1. read_from_in_protocol
      2. write_to_out_protocol

      It would be ideal to extract those two methods into a single trait TSerializable that would allow code to be generic over any auto-generated Thrift object.

      Attachments

        Issue Links

          Activity

            People

              jensg Jens Geyer
              allengeorge Allen George
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m