Struct ldtk2::EnumValueDefinition [−][src]
pub struct EnumValueDefinition {
pub tile_src_rect: Option<Vec<i64>>,
pub color: i64,
pub id: String,
pub tile_id: Option<i64>,
}
Fields
tile_src_rect: Option<Vec<i64>>
An array of 4 Int values that refers to the tile in the tileset image: [ x, y, width, height ]
color: i64
Optional color
id: String
Enum value
tile_id: Option<i64>
The optional ID of the tile
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for EnumValueDefinition
impl Send for EnumValueDefinition
impl Sync for EnumValueDefinition
impl Unpin for EnumValueDefinition
impl UnwindSafe for EnumValueDefinition
Blanket Implementations
Mutably borrows from an owned value. Read more