prost-msg-id

Crates.ioprost-msg-id
lib.rsprost-msg-id
version0.1.3
sourcesrc
created_at2022-04-20 06:07:29.465298
updated_at2022-04-20 08:05:52.344066
descriptionprost impl message id.
homepage
repositoryhttps://github.com/luyikk/prost-build-type
max_upload_size
id570795
size2,093
(luyikk)

documentation

https://docs.rs/prost-msg-id

README

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()
    }
}
Commit count: 29

cargo fmt