// This file is @generated by prost-build. #[derive(proto_gen::CmdID)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PlayerStatusRedisData { #[prost(enumeration = "PlayerStatusType", tag = "1")] pub status: i32, #[prost(uint32, tag = "2")] pub gameserver_id: u32, #[prost(uint64, tag = "3")] pub login_rand: u64, #[prost(uint32, tag = "4")] pub login_time: u32, } #[derive(proto_gen::CmdID)] #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] pub enum PlayerStatusType { PlayerStatusOffline = 0, PlayerStatusOnline = 1, } impl PlayerStatusType { /// String value of the enum field names used in the ProtoBuf definition. /// /// The values are not transformed in any way and thus are considered stable /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { PlayerStatusType::PlayerStatusOffline => "PLAYER_STATUS_OFFLINE", PlayerStatusType::PlayerStatusOnline => "PLAYER_STATUS_ONLINE", } } /// Creates an enum from field names used in the ProtoBuf definition. pub fn from_str_name(value: &str) -> ::core::option::Option { match value { "PLAYER_STATUS_OFFLINE" => Some(Self::PlayerStatusOffline), "PLAYER_STATUS_ONLINE" => Some(Self::PlayerStatusOnline), _ => None, } } }