pub struct Serializer {
pub name: String,
pub fields: Vec<Arc<SerializerField>>,
}Expand description
A serializer: a named collection of fields describing an entity class.
Fields§
§name: String§fields: Vec<Arc<SerializerField>>Implementations§
Source§impl Serializer
impl Serializer
Sourcepub fn resolve_field_key(&self, path: &str) -> Option<u64>
pub fn resolve_field_key(&self, path: &str) -> Option<u64>
Resolve a dotted field name (e.g. “m_pGameRules.m_bGamePaused”) to a packed u64 key. Walks the serializer hierarchy matching send_node + var_name against path components.
Sourcepub fn field_name_for_key(&self, key: u64) -> Option<String>
pub fn field_name_for_key(&self, key: u64) -> Option<String>
Convert a packed u64 key back to a dotted field name string. Walks the serializer hierarchy using the unpacked FieldPath.
Trait Implementations§
Source§impl Clone for Serializer
impl Clone for Serializer
Source§fn clone(&self) -> Serializer
fn clone(&self) -> Serializer
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 moreAuto Trait Implementations§
impl Freeze for Serializer
impl RefUnwindSafe for Serializer
impl Send for Serializer
impl Sync for Serializer
impl Unpin for Serializer
impl UnsafeUnpin for Serializer
impl UnwindSafe for Serializer
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