pub struct CDemoFileHeader {Show 15 fields
pub demo_file_stamp: String,
pub patch_version: Option<i32>,
pub server_name: Option<String>,
pub client_name: Option<String>,
pub map_name: Option<String>,
pub game_directory: Option<String>,
pub fullpackets_version: Option<i32>,
pub allow_clientside_entities: Option<bool>,
pub allow_clientside_particles: Option<bool>,
pub addons: Option<String>,
pub demo_version_name: Option<String>,
pub demo_version_guid: Option<String>,
pub build_num: Option<i32>,
pub game: Option<String>,
pub server_start_tick: Option<i32>,
}Fields§
§demo_file_stamp: String§patch_version: Option<i32>§server_name: Option<String>§client_name: Option<String>§map_name: Option<String>§game_directory: Option<String>§fullpackets_version: Option<i32>§allow_clientside_entities: Option<bool>§allow_clientside_particles: Option<bool>§addons: Option<String>§demo_version_name: Option<String>§demo_version_guid: Option<String>§build_num: Option<i32>§game: Option<String>§server_start_tick: Option<i32>Implementations§
Source§impl CDemoFileHeader
impl CDemoFileHeader
Sourcepub fn patch_version(&self) -> i32
pub fn patch_version(&self) -> i32
Returns the value of patch_version, or the default value if patch_version is unset.
Sourcepub fn server_name(&self) -> &str
pub fn server_name(&self) -> &str
Returns the value of server_name, or the default value if server_name is unset.
Sourcepub fn client_name(&self) -> &str
pub fn client_name(&self) -> &str
Returns the value of client_name, or the default value if client_name is unset.
Sourcepub fn map_name(&self) -> &str
pub fn map_name(&self) -> &str
Returns the value of map_name, or the default value if map_name is unset.
Sourcepub fn game_directory(&self) -> &str
pub fn game_directory(&self) -> &str
Returns the value of game_directory, or the default value if game_directory is unset.
Sourcepub fn fullpackets_version(&self) -> i32
pub fn fullpackets_version(&self) -> i32
Returns the value of fullpackets_version, or the default value if fullpackets_version is unset.
Sourcepub fn allow_clientside_entities(&self) -> bool
pub fn allow_clientside_entities(&self) -> bool
Returns the value of allow_clientside_entities, or the default value if allow_clientside_entities is unset.
Sourcepub fn allow_clientside_particles(&self) -> bool
pub fn allow_clientside_particles(&self) -> bool
Returns the value of allow_clientside_particles, or the default value if allow_clientside_particles is unset.
Sourcepub fn addons(&self) -> &str
pub fn addons(&self) -> &str
Returns the value of addons, or the default value if addons is unset.
Sourcepub fn demo_version_name(&self) -> &str
pub fn demo_version_name(&self) -> &str
Returns the value of demo_version_name, or the default value if demo_version_name is unset.
Sourcepub fn demo_version_guid(&self) -> &str
pub fn demo_version_guid(&self) -> &str
Returns the value of demo_version_guid, or the default value if demo_version_guid is unset.
Sourcepub fn build_num(&self) -> i32
pub fn build_num(&self) -> i32
Returns the value of build_num, or the default value if build_num is unset.
Sourcepub fn server_start_tick(&self) -> i32
pub fn server_start_tick(&self) -> i32
Returns the value of server_start_tick, or the default value if server_start_tick is unset.
Trait Implementations§
Source§impl Clone for CDemoFileHeader
impl Clone for CDemoFileHeader
Source§fn clone(&self) -> CDemoFileHeader
fn clone(&self) -> CDemoFileHeader
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CDemoFileHeader
impl Debug for CDemoFileHeader
Source§impl Default for CDemoFileHeader
impl Default for CDemoFileHeader
Source§impl<'de> Deserialize<'de> for CDemoFileHeader
impl<'de> Deserialize<'de> for CDemoFileHeader
Source§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>,
Source§impl Hash for CDemoFileHeader
impl Hash for CDemoFileHeader
Source§impl Message for CDemoFileHeader
impl Message for CDemoFileHeader
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self.