pub struct Meta {Show 13 fields
pub schema_version: String,
pub app: String,
pub version: String,
pub format: String,
pub scale: f32,
pub power_of_two: bool,
pub square: bool,
pub max_dim: (u32, u32),
pub padding: (u32, u32),
pub extrude: u32,
pub allow_rotation: bool,
pub trim_mode: String,
pub background_color: Option<[u8; 4]>,
}Expand description
Atlas-level metadata (common fields used by exporters/templates).
Fields§
§schema_version: StringSchema version for JSON metadata formats (e.g., json-array/json-hash). Allows downstream tooling to handle future additive changes. String to allow non-integer versions like “1.0”; current: “1”.
app: String§version: String§format: String§scale: f32§power_of_two: bool§square: bool§max_dim: (u32, u32)§padding: (u32, u32)§extrude: u32§allow_rotation: bool§trim_mode: String§background_color: Option<[u8; 4]>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Meta
impl<'de> Deserialize<'de> for Meta
Source§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 Freeze for Meta
impl RefUnwindSafe for Meta
impl Send for Meta
impl Sync for Meta
impl Unpin for Meta
impl UnwindSafe for Meta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more