Struct rpg::item::Item [] [src]

pub struct Item {
    pub name: String,
    pub item_type: ItemType,
    pub influence: Option<ItemInfluence>,
    pub stack_size: usize,
    pub rarity: ItemRarity,
}

An item

Fields

The name of the item

The type of the item

The influence of the item (optional)

The stack size of the item

The rarity of the item

Methods

impl Item
[src]

Returns true if the item can be equipped

Returns true if the item can be stacked

Trait Implementations

impl Clone for Item
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Item
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Item
[src]

impl Debug for Item
[src]

Formats the value using the given formatter.