14 lines
432 B
Rust
14 lines
432 B
Rust
use pumpkin_protocol::codec::identifier::Identifier;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
|
pub struct Painting {
|
|
asset_id: Identifier,
|
|
// #[serde(skip_serializing_if = "Option::is_none")]
|
|
// title: Option<TextComponent<'static>>,
|
|
// #[serde(skip_serializing_if = "Option::is_none")]
|
|
// author: Option<TextComponent<'static>>,
|
|
height: i32,
|
|
width: i32,
|
|
}
|