pub struct SettingInfo {
id: String,
name: String,
min: Option<String>,
max: Option<String>,
step: Option<String>,
unit: Option<String>,
values: Option<Vec<SettingInfo>>,
}Expand description
A struct representing a piece of SettingInfo
Fields§
§id: String§name: String§min: Option<String>§max: Option<String>§step: Option<String>§unit: Option<String>§values: Option<Vec<SettingInfo>>Implementations§
Source§impl SettingInfo
Generate setting info. This should probably be changed to be done at compile time.
impl SettingInfo
Generate setting info. This should probably be changed to be done at compile time.
pub fn get_archiver_settings() -> Vec<SettingInfo>
pub fn get_server_settings() -> Vec<SettingInfo>
Trait Implementations§
Source§impl Clone for SettingInfo
impl Clone for SettingInfo
Source§fn clone(&self) -> SettingInfo
fn clone(&self) -> SettingInfo
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 SettingInfo
impl Debug for SettingInfo
Source§impl<'de> Deserialize<'de> for SettingInfo
impl<'de> Deserialize<'de> for SettingInfo
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 SettingInfo
impl PartialEq for SettingInfo
Source§impl Serialize for SettingInfo
impl Serialize for SettingInfo
impl StructuralPartialEq for SettingInfo
Auto Trait Implementations§
impl Freeze for SettingInfo
impl RefUnwindSafe for SettingInfo
impl Send for SettingInfo
impl Sync for SettingInfo
impl Unpin for SettingInfo
impl UnsafeUnpin for SettingInfo
impl UnwindSafe for SettingInfo
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