pub struct IntegerConfigItem {
pub value: Option<i32>,
pub editable: Option<bool>,
}Fields§
§value: Option<i32>The integer value of current config item
editable: Option<bool>The configure item can be updated or not
Implementations§
Source§impl IntegerConfigItem
impl IntegerConfigItem
pub fn new() -> IntegerConfigItem
Trait Implementations§
Source§impl Clone for IntegerConfigItem
impl Clone for IntegerConfigItem
Source§fn clone(&self) -> IntegerConfigItem
fn clone(&self) -> IntegerConfigItem
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 IntegerConfigItem
impl Debug for IntegerConfigItem
Source§impl Default for IntegerConfigItem
impl Default for IntegerConfigItem
Source§fn default() -> IntegerConfigItem
fn default() -> IntegerConfigItem
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IntegerConfigItem
impl<'de> Deserialize<'de> for IntegerConfigItem
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
Source§impl PartialEq for IntegerConfigItem
impl PartialEq for IntegerConfigItem
Source§impl Serialize for IntegerConfigItem
impl Serialize for IntegerConfigItem
impl StructuralPartialEq for IntegerConfigItem
Auto Trait Implementations§
impl Freeze for IntegerConfigItem
impl RefUnwindSafe for IntegerConfigItem
impl Send for IntegerConfigItem
impl Sync for IntegerConfigItem
impl Unpin for IntegerConfigItem
impl UnwindSafe for IntegerConfigItem
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