pub struct SerializerField {
pub var_type: String,
pub var_name: String,
pub bit_count: Option<i32>,
pub low_value: Option<f32>,
pub high_value: Option<f32>,
pub encode_flags: Option<i32>,
pub field_serializer_name: Option<String>,
pub send_node: Option<String>,
pub var_encoder: Option<String>,
pub field_serializer: Option<Arc<Serializer>>,
pub field_type: FieldType,
pub metadata: FieldMetadata,
}Expand description
A single field within a serializer, describing one network property.
Fields§
§var_type: StringSource 2 type string (e.g. "float32", "CNetworkUtlVectorBase< int32 >").
var_name: StringField name (e.g. "m_iHealth").
bit_count: Option<i32>Bit width hint for quantized floats and QAngle.
low_value: Option<f32>Low end of quantized float range.
high_value: Option<f32>High end of quantized float range.
encode_flags: Option<i32>Quantized float encoding flags (see QFE_* constants).
field_serializer_name: Option<String>Name of a nested serializer (for composite / array fields).
send_node: Option<String>Dotted path prefix used by the entity field name resolution.
var_encoder: Option<String>Optional encoder hint (e.g. "coord", "normal", "fixed64").
field_serializer: Option<Arc<Serializer>>Resolved nested serializer (populated during SerializerContainer::parse).
field_type: FieldTypeParsed type information.
metadata: FieldMetadataResolved decoder and special descriptor.
Implementations§
Source§impl SerializerField
impl SerializerField
Sourcepub fn get_child(&self, index: usize) -> Option<&SerializerField>
pub fn get_child(&self, index: usize) -> Option<&SerializerField>
Get a field from the nested serializer at index, if present.
Sourcepub fn is_dynamic_array(&self) -> bool
pub fn is_dynamic_array(&self) -> bool
Returns true if this field represents a variable-length array.
Trait Implementations§
Source§impl Clone for SerializerField
impl Clone for SerializerField
Source§fn clone(&self) -> SerializerField
fn clone(&self) -> SerializerField
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more