Enum ezomyte::Label [] [src]

pub enum Label {
    Empty,
    Cosmetic(String),
    ExactPrice(Price),
    NegotiablePrice(Price),
    Unknown(StringString),
}

Label (note) for an item or stash tab.

Those labels can have special meaning in PoE and indicate e.g. prices applicable to all items in the tab.

Variants

Empty label.

Cosmetic name, without any other meaning.

Exact price ("~price $N $CURR").

Negotiable price ("~b/o $N $CURR").

Unrecognized combination of tilde-prefixed tag and value.

Methods

impl Label
[src]

[src]

Return whether the label is empty.

[src]

Return a possible price in the label.

This doesn't distinguish between the exact price and negotiable/buyout price.

[src]

Return the exact Price specified in this Label, if any.

[src]

Return the negotiable (buyout) Price specified in this Label, if any.

[src]

Return the tilde-prefixed tag (like "b/o") from the original label (without the actual tilde prefix).

[src]

Return a possible string value (usually the price) that's associated with the label's tag.

[src]

Return a possible cosmetic note in this Label.

Trait Implementations

impl Clone for Label
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Label
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Label
[src]

[src]

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

[src]

This method tests for !=.

impl Default for Label
[src]

[src]

Returns the "default value" for a type. Read more

impl Display for Label
[src]

[src]

Formats the value using the given formatter. Read more

impl<'de> Deserialize<'de> for Label
[src]

[src]

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl Send for Label

impl Sync for Label