Struct CharacterSchema

Source
pub struct CharacterSchema {
Show 79 fields pub name: String, pub account: String, pub skin: CharacterSkin, pub level: i32, pub xp: i32, pub max_xp: i32, pub gold: i32, pub speed: i32, pub mining_level: i32, pub mining_xp: i32, pub mining_max_xp: i32, pub woodcutting_level: i32, pub woodcutting_xp: i32, pub woodcutting_max_xp: i32, pub fishing_level: i32, pub fishing_xp: i32, pub fishing_max_xp: i32, pub weaponcrafting_level: i32, pub weaponcrafting_xp: i32, pub weaponcrafting_max_xp: i32, pub gearcrafting_level: i32, pub gearcrafting_xp: i32, pub gearcrafting_max_xp: i32, pub jewelrycrafting_level: i32, pub jewelrycrafting_xp: i32, pub jewelrycrafting_max_xp: i32, pub cooking_level: i32, pub cooking_xp: i32, pub cooking_max_xp: i32, pub alchemy_level: i32, pub alchemy_xp: i32, pub alchemy_max_xp: i32, pub hp: i32, pub max_hp: i32, pub haste: i32, pub critical_strike: i32, pub wisdom: i32, pub prospecting: i32, pub attack_fire: i32, pub attack_earth: i32, pub attack_water: i32, pub attack_air: i32, pub dmg: i32, pub dmg_fire: i32, pub dmg_earth: i32, pub dmg_water: i32, pub dmg_air: i32, pub res_fire: i32, pub res_earth: i32, pub res_water: i32, pub res_air: i32, pub x: i32, pub y: i32, pub cooldown: i32, pub cooldown_expiration: Option<String>, pub weapon_slot: String, pub rune_slot: String, pub shield_slot: String, pub helmet_slot: String, pub body_armor_slot: String, pub leg_armor_slot: String, pub boots_slot: String, pub ring1_slot: String, pub ring2_slot: String, pub amulet_slot: String, pub artifact1_slot: String, pub artifact2_slot: String, pub artifact3_slot: String, pub utility1_slot: String, pub utility1_slot_quantity: u32, pub utility2_slot: String, pub utility2_slot_quantity: u32, pub bag_slot: String, pub task: String, pub task_type: String, pub task_progress: i32, pub task_total: i32, pub inventory_max_items: i32, pub inventory: Option<Vec<InventorySlot>>,
}

Fields§

§name: String

Name of the character.

§account: String

Account name.

§skin: CharacterSkin

Character skin code.

§level: i32

Combat level.

§xp: i32

The current xp level of the combat level.

§max_xp: i32

XP required to level up the character.

§gold: i32

The numbers of gold on this character.

§speed: i32

*Not available, on the roadmap. Character movement speed.

§mining_level: i32

Mining level.

§mining_xp: i32

The current xp level of the Mining skill.

§mining_max_xp: i32

Mining XP required to level up the skill.

§woodcutting_level: i32

Woodcutting level.

§woodcutting_xp: i32

The current xp level of the Woodcutting skill.

§woodcutting_max_xp: i32

Woodcutting XP required to level up the skill.

§fishing_level: i32

Fishing level.

§fishing_xp: i32

The current xp level of the Fishing skill.

§fishing_max_xp: i32

Fishing XP required to level up the skill.

§weaponcrafting_level: i32

Weaponcrafting level.

§weaponcrafting_xp: i32

The current xp level of the Weaponcrafting skill.

§weaponcrafting_max_xp: i32

Weaponcrafting XP required to level up the skill.

§gearcrafting_level: i32

Gearcrafting level.

§gearcrafting_xp: i32

The current xp level of the Gearcrafting skill.

§gearcrafting_max_xp: i32

Gearcrafting XP required to level up the skill.

§jewelrycrafting_level: i32

Jewelrycrafting level.

§jewelrycrafting_xp: i32

The current xp level of the Jewelrycrafting skill.

§jewelrycrafting_max_xp: i32

Jewelrycrafting XP required to level up the skill.

§cooking_level: i32

The current xp level of the Cooking skill.

§cooking_xp: i32

Cooking XP.

§cooking_max_xp: i32

Cooking XP required to level up the skill.

§alchemy_level: i32

Alchemy level.

§alchemy_xp: i32

Alchemy XP.

§alchemy_max_xp: i32

Alchemy XP required to level up the skill.

§hp: i32

Character actual HP.

§max_hp: i32

Character max HP.

§haste: i32

*Increase speed attack (reduce fight cooldown)

§critical_strike: i32

% Critical strike. Critical strikes adds 50% extra damage to an attack (1.5x).

§wisdom: i32

Wisdom increases the amount of XP gained from fights and skills (1% extra per 10 wisdom).

§prospecting: i32

Prospecting increases the chances of getting drops from fights and skills (1% extra per 10 PP).

§attack_fire: i32

Fire attack.

§attack_earth: i32

Earth attack.

§attack_water: i32

Water attack.

§attack_air: i32

Air attack.

§dmg: i32

% Damage. Damage increases your attack in all elements.

§dmg_fire: i32

% Fire damage. Damage increases your fire attack.

§dmg_earth: i32

% Earth damage. Damage increases your earth attack.

§dmg_water: i32

% Water damage. Damage increases your water attack.

§dmg_air: i32

% Air damage. Damage increases your air attack.

§res_fire: i32

% Fire resistance. Reduces fire attack.

§res_earth: i32

% Earth resistance. Reduces earth attack.

§res_water: i32

% Water resistance. Reduces water attack.

§res_air: i32

% Air resistance. Reduces air attack.

§x: i32

Character x coordinate.

§y: i32

Character y coordinate.

§cooldown: i32

Cooldown in seconds.

§cooldown_expiration: Option<String>

Datetime Cooldown expiration.

§weapon_slot: String

Weapon slot.

§rune_slot: String

Rune slot.

§shield_slot: String

Shield slot.

§helmet_slot: String

Helmet slot.

§body_armor_slot: String

Body armor slot.

§leg_armor_slot: String

Leg armor slot.

§boots_slot: String

Boots slot.

§ring1_slot: String

Ring 1 slot.

§ring2_slot: String

Ring 2 slot.

§amulet_slot: String

Amulet slot.

§artifact1_slot: String

Artifact 1 slot.

§artifact2_slot: String

Artifact 2 slot.

§artifact3_slot: String

Artifact 3 slot.

§utility1_slot: String

Utility 1 slot.

§utility1_slot_quantity: u32

Utility 1 quantity.

§utility2_slot: String

Utility 2 slot.

§utility2_slot_quantity: u32

Utility 2 quantity.

§bag_slot: String

Bag slot.

§task: String

Task in progress.

§task_type: String

Task type.

§task_progress: i32

Task progression.

§task_total: i32

Task total objective.

§inventory_max_items: i32

Inventory max items.

§inventory: Option<Vec<InventorySlot>>

List of inventory slots.

Implementations§

Source§

impl CharacterSchema

Source

pub fn new( name: String, account: String, skin: CharacterSkin, level: i32, xp: i32, max_xp: i32, gold: i32, speed: i32, mining_level: i32, mining_xp: i32, mining_max_xp: i32, woodcutting_level: i32, woodcutting_xp: i32, woodcutting_max_xp: i32, fishing_level: i32, fishing_xp: i32, fishing_max_xp: i32, weaponcrafting_level: i32, weaponcrafting_xp: i32, weaponcrafting_max_xp: i32, gearcrafting_level: i32, gearcrafting_xp: i32, gearcrafting_max_xp: i32, jewelrycrafting_level: i32, jewelrycrafting_xp: i32, jewelrycrafting_max_xp: i32, cooking_level: i32, cooking_xp: i32, cooking_max_xp: i32, alchemy_level: i32, alchemy_xp: i32, alchemy_max_xp: i32, hp: i32, max_hp: i32, haste: i32, critical_strike: i32, wisdom: i32, prospecting: i32, attack_fire: i32, attack_earth: i32, attack_water: i32, attack_air: i32, dmg: i32, dmg_fire: i32, dmg_earth: i32, dmg_water: i32, dmg_air: i32, res_fire: i32, res_earth: i32, res_water: i32, res_air: i32, x: i32, y: i32, cooldown: i32, weapon_slot: String, rune_slot: String, shield_slot: String, helmet_slot: String, body_armor_slot: String, leg_armor_slot: String, boots_slot: String, ring1_slot: String, ring2_slot: String, amulet_slot: String, artifact1_slot: String, artifact2_slot: String, artifact3_slot: String, utility1_slot: String, utility1_slot_quantity: u32, utility2_slot: String, utility2_slot_quantity: u32, bag_slot: String, task: String, task_type: String, task_progress: i32, task_total: i32, inventory_max_items: i32, ) -> CharacterSchema

Trait Implementations§

Source§

impl Clone for CharacterSchema

Source§

fn clone(&self) -> CharacterSchema

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CharacterSchema

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CharacterSchema

Source§

fn default() -> CharacterSchema

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for CharacterSchema

Source§

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 CharacterSchema

Source§

fn eq(&self, other: &CharacterSchema) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for CharacterSchema

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CharacterSchema

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,