Enum rust_rpg_toolkit::json::tiled::TiledProperty[][src]

pub enum TiledProperty {
    Bool {
        name: String,
        value: bool,
    },
    Float {
        name: String,
        value: f32,
    },
    Int {
        name: String,
        value: i32,
    },
    String {
        name: String,
        value: String,
    },
    Color {
        name: String,
        value: String,
    },
    Object {
        name: String,
        value: i32,
    },
    File {
        name: String,
        value: String,
    },
}

Variants

Bool

Fields of Bool

name: Stringvalue: bool
Float

Fields of Float

name: Stringvalue: f32
Int

Fields of Int

name: Stringvalue: i32
String

Fields of String

name: Stringvalue: String
Color

Fields of Color

name: Stringvalue: String
Object

Fields of Object

name: Stringvalue: i32
File

Fields of File

name: Stringvalue: String

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.