Struct jokolink::cross_platform::cmltypes::CIdentity [−][src]
pub struct CIdentity { pub name: String, pub profession: u32, pub spec: u32, pub race: u32, pub map_id: u32, pub world_id: u32, pub team_color_id: u32, pub commander: bool, pub fov: f32, pub uisz: u32, }
Expand description
The json structure of the Identity field inside Cmumblelink. the json string is null terminated and utf-16 encoded. so, need to use Widestring crate’s U16Cstring to first parse the bytes and then, convert to String before deserializing to CIdentity
Fields
name: String
profession: u32
spec: u32
race: u32
map_id: u32
world_id: u32
team_color_id: u32
commander: bool
fov: f32
uisz: u32
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for CIdentity
impl UnwindSafe for CIdentity
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more