pub struct IntSetting {
pub name: &'static str,
pub setting_type: &'static str,
pub default_value: i64,
pub minimum_value: Option<i64>,
pub maximum_value: Option<i64>,
}Fields§
§name: &'static strInternal mod-namespaced name (e.g. "my-mod-count").
setting_type: &'static strWhen the setting takes effect: "startup", "runtime-global", or "runtime-per-user".
default_value: i64The default value for this setting.
minimum_value: Option<i64>Optional minimum allowed value.
maximum_value: Option<i64>Optional maximum allowed value.
Auto Trait Implementations§
impl Freeze for IntSetting
impl RefUnwindSafe for IntSetting
impl Send for IntSetting
impl Sync for IntSetting
impl Unpin for IntSetting
impl UnsafeUnpin for IntSetting
impl UnwindSafe for IntSetting
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