You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (Jira)" <ji...@apache.org> on 2022/04/14 17:21:00 UTC

[jira] [Updated] (THRIFT-4100) Extract Rust read/write struct methods into a trait

     [ https://issues.apache.org/jira/browse/THRIFT-4100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jens Geyer updated THRIFT-4100:
-------------------------------
    Component/s:     (was: Rust - Library)

> Extract Rust read/write struct methods into a trait
> ---------------------------------------------------
>
>                 Key: THRIFT-4100
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4100
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Rust - Compiler
>            Reporter: Allen George
>            Priority: Minor
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Each struct/enum/union has two auto-generated methods:
> # {{read_from_in_protocol}}
> # {{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.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)