pub struct ModSlotConfig {
pub slot_id: String,
pub after_section: Option<String>,
pub mod_id: Option<String>,
pub position: Option<LayoutPosition>,
pub size: Option<LayoutSize>,
}Expand description
MOD UI slot configuration
Fields§
§slot_id: StringSlot identifier
after_section: Option<String>Position in the layout (after which section)
mod_id: Option<String>MOD ID to display in this slot (None = empty slot)
position: Option<LayoutPosition>2D position (for future)
size: Option<LayoutSize>Size hints
Trait Implementations§
Source§impl Clone for ModSlotConfig
impl Clone for ModSlotConfig
Source§fn clone(&self) -> ModSlotConfig
fn clone(&self) -> ModSlotConfig
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 ModSlotConfig
impl Debug for ModSlotConfig
Source§impl<'de> Deserialize<'de> for ModSlotConfig
impl<'de> Deserialize<'de> for ModSlotConfig
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 ModSlotConfig
impl RefUnwindSafe for ModSlotConfig
impl Send for ModSlotConfig
impl Sync for ModSlotConfig
impl Unpin for ModSlotConfig
impl UnwindSafe for ModSlotConfig
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