pub struct CDotaUserMsgChatEvent {
pub type: i32,
pub value: Option<u32>,
pub playerid_1: Option<i32>,
pub playerid_2: Option<i32>,
pub playerid_3: Option<i32>,
pub playerid_4: Option<i32>,
pub playerid_5: Option<i32>,
pub playerid_6: Option<i32>,
pub value2: Option<u32>,
pub value3: Option<u32>,
}Fields§
§type: i32§value: Option<u32>§playerid_1: Option<i32>§playerid_2: Option<i32>§playerid_3: Option<i32>§playerid_4: Option<i32>§playerid_5: Option<i32>§playerid_6: Option<i32>§value2: Option<u32>§value3: Option<u32>Implementations§
Source§impl CDotaUserMsgChatEvent
impl CDotaUserMsgChatEvent
Sourcepub fn type(&self) -> DotaChatMessage
pub fn type(&self) -> DotaChatMessage
Returns the enum value of type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_type(&mut self, value: DotaChatMessage)
pub fn set_type(&mut self, value: DotaChatMessage)
Sets type to the provided enum value.
Sourcepub fn playerid_1(&self) -> i32
pub fn playerid_1(&self) -> i32
Returns the value of playerid_1, or the default value if playerid_1 is unset.
Sourcepub fn playerid_2(&self) -> i32
pub fn playerid_2(&self) -> i32
Returns the value of playerid_2, or the default value if playerid_2 is unset.
Sourcepub fn playerid_3(&self) -> i32
pub fn playerid_3(&self) -> i32
Returns the value of playerid_3, or the default value if playerid_3 is unset.
Sourcepub fn playerid_4(&self) -> i32
pub fn playerid_4(&self) -> i32
Returns the value of playerid_4, or the default value if playerid_4 is unset.
Sourcepub fn playerid_5(&self) -> i32
pub fn playerid_5(&self) -> i32
Returns the value of playerid_5, or the default value if playerid_5 is unset.
Sourcepub fn playerid_6(&self) -> i32
pub fn playerid_6(&self) -> i32
Returns the value of playerid_6, or the default value if playerid_6 is unset.
Trait Implementations§
Source§impl Clone for CDotaUserMsgChatEvent
impl Clone for CDotaUserMsgChatEvent
Source§fn clone(&self) -> CDotaUserMsgChatEvent
fn clone(&self) -> CDotaUserMsgChatEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CDotaUserMsgChatEvent
Source§impl Debug for CDotaUserMsgChatEvent
impl Debug for CDotaUserMsgChatEvent
Source§impl Default for CDotaUserMsgChatEvent
impl Default for CDotaUserMsgChatEvent
Source§fn default() -> CDotaUserMsgChatEvent
fn default() -> CDotaUserMsgChatEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CDotaUserMsgChatEvent
impl<'de> Deserialize<'de> for CDotaUserMsgChatEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CDotaUserMsgChatEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CDotaUserMsgChatEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for CDotaUserMsgChatEvent
impl Message for CDotaUserMsgChatEvent
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for CDotaUserMsgChatEvent
impl PartialEq for CDotaUserMsgChatEvent
Source§impl Serialize for CDotaUserMsgChatEvent
impl Serialize for CDotaUserMsgChatEvent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CDotaUserMsgChatEvent
Auto Trait Implementations§
impl Freeze for CDotaUserMsgChatEvent
impl RefUnwindSafe for CDotaUserMsgChatEvent
impl Send for CDotaUserMsgChatEvent
impl Sync for CDotaUserMsgChatEvent
impl Unpin for CDotaUserMsgChatEvent
impl UnsafeUnpin for CDotaUserMsgChatEvent
impl UnwindSafe for CDotaUserMsgChatEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more