pub struct Profile {
pub id: Option<i64>,
pub name: String,
pub game_id: GameId,
pub source: ProfileSource,
pub mods: Vec<EnabledMod>,
pub overrides: PathBuf,
pub load_order_rules: SmallVec<[LoadOrderRule; 4]>,
pub load_order_lock: Option<LoadOrderLock>,
}Expand description
A modding profile containing an ordered list of mods.
Fields§
§id: Option<i64>Database row ID (None for profiles not yet persisted).
name: String§game_id: GameId§source: ProfileSource§mods: Vec<EnabledMod>§overrides: PathBuf§load_order_rules: SmallVec<[LoadOrderRule; 4]>Load order rules — typically 0–10 per profile.
SmallVec<[_; 4]> keeps ≤4 rules inline (no heap allocation).
load_order_lock: Option<LoadOrderLock>Profile-level load order lock (V7). When Some, the entire mod
order is frozen and reorder operations are refused until the user
explicitly unlocks the profile. See LoadOrderLock for details.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Profile
impl<'de> Deserialize<'de> for Profile
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 Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
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