#prost #id #message #msg #impl #fail #traits

prost-msg-id

prost impl message id

1 unstable release

0.1.3 Apr 20, 2022
0.1.2 Apr 20, 2022
0.1.1 Apr 20, 2022
0.1.0 Apr 20, 2022

#29 in #fail

43 downloads per month

Apache-2.0

3KB

prost struct msg id trait

message Fail{
   enum MsgId {  None=0;Id = 150002; }
   int64 number=1;
   string message=2;
}

auto impl MsgId

impl MsgId for Fail {
    fn get_msg_id(&self) -> i32 {
        Self::get_msg_id()
    }
}

No runtime deps