pub struct ActiveCharacterSchema {
pub name: String,
pub account: String,
pub skin: CharacterSkin,
pub x: i32,
pub y: i32,
pub layer: MapLayer,
pub map_id: i32,
}Fields§
§name: StringName of the character.
account: StringAccount name.
skin: CharacterSkinCharacter skin code.
x: i32Character x coordinate.
y: i32Character y coordinate.
layer: MapLayerCharacter current layer.
map_id: i32Character current map ID.
Implementations§
Source§impl ActiveCharacterSchema
impl ActiveCharacterSchema
pub fn new( name: String, account: String, skin: CharacterSkin, x: i32, y: i32, layer: MapLayer, map_id: i32, ) -> ActiveCharacterSchema
Trait Implementations§
Source§impl Clone for ActiveCharacterSchema
impl Clone for ActiveCharacterSchema
Source§fn clone(&self) -> ActiveCharacterSchema
fn clone(&self) -> ActiveCharacterSchema
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActiveCharacterSchema
impl Debug for ActiveCharacterSchema
Source§impl Default for ActiveCharacterSchema
impl Default for ActiveCharacterSchema
Source§fn default() -> ActiveCharacterSchema
fn default() -> ActiveCharacterSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ActiveCharacterSchema
impl<'de> Deserialize<'de> for ActiveCharacterSchema
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ActiveCharacterSchema
impl PartialEq for ActiveCharacterSchema
Source§impl Serialize for ActiveCharacterSchema
impl Serialize for ActiveCharacterSchema
impl StructuralPartialEq for ActiveCharacterSchema
Auto Trait Implementations§
impl Freeze for ActiveCharacterSchema
impl RefUnwindSafe for ActiveCharacterSchema
impl Send for ActiveCharacterSchema
impl Sync for ActiveCharacterSchema
impl Unpin for ActiveCharacterSchema
impl UnwindSafe for ActiveCharacterSchema
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