pub struct PrefabData {
pub name: String,
pub width: usize,
pub height: usize,
pub pattern: Vec<String>,
pub weight: f32,
pub tags: Vec<String>,
pub legend: Option<HashMap<String, PrefabLegendEntry>>,
}Fields§
§name: String§width: usize§height: usize§pattern: Vec<String>§weight: f32§legend: Option<HashMap<String, PrefabLegendEntry>>Trait Implementations§
Source§impl Clone for PrefabData
impl Clone for PrefabData
Source§fn clone(&self) -> PrefabData
fn clone(&self) -> PrefabData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrefabData
impl Debug for PrefabData
Source§impl<'de> Deserialize<'de> for PrefabData
impl<'de> Deserialize<'de> for PrefabData
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 PrefabData
impl RefUnwindSafe for PrefabData
impl Send for PrefabData
impl Sync for PrefabData
impl Unpin for PrefabData
impl UnwindSafe for PrefabData
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