pub trait DefaultCode { fn code(&self) -> OpCode; }
a trait that tells ws-tool corresponding opcode of custom type
get payload opcode