pub struct ModuleSetting {
pub base_info: Option<ModuleBaseInfo>,
pub settings: Option<Vec<SettingItem>>,
pub categories: Option<Vec<SettingCategory>>,
}
Fields
base_info: Option<ModuleBaseInfo>
settings: Option<Vec<SettingItem>>
categories: Option<Vec<SettingCategory>>
Implementations
sourceimpl ModuleSetting
impl ModuleSetting
pub fn new<F1, F2, F3>(
base_info: F1,
settings: F2,
categories: F3
) -> ModuleSettingwhere
F1: Into<Option<ModuleBaseInfo>>,
F2: Into<Option<Vec<SettingItem>>>,
F3: Into<Option<Vec<SettingCategory>>>,
pub fn read_from_in_protocol(
i_prot: &mut dyn TInputProtocol
) -> Result<ModuleSetting>
pub fn write_to_out_protocol(
&self,
o_prot: &mut dyn TOutputProtocol
) -> Result<()>
Trait Implementations
sourceimpl Clone for ModuleSetting
impl Clone for ModuleSetting
sourcefn clone(&self) -> ModuleSetting
fn clone(&self) -> ModuleSetting
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ModuleSetting
impl Debug for ModuleSetting
sourceimpl Default for ModuleSetting
impl Default for ModuleSetting
sourceimpl Hash for ModuleSetting
impl Hash for ModuleSetting
sourceimpl Ord for ModuleSetting
impl Ord for ModuleSetting
sourcefn cmp(&self, other: &ModuleSetting) -> Ordering
fn cmp(&self, other: &ModuleSetting) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ModuleSetting> for ModuleSetting
impl PartialEq<ModuleSetting> for ModuleSetting
sourcefn eq(&self, other: &ModuleSetting) -> bool
fn eq(&self, other: &ModuleSetting) -> bool
sourceimpl PartialOrd<ModuleSetting> for ModuleSetting
impl PartialOrd<ModuleSetting> for ModuleSetting
sourcefn partial_cmp(&self, other: &ModuleSetting) -> Option<Ordering>
fn partial_cmp(&self, other: &ModuleSetting) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ModuleSetting
impl StructuralEq for ModuleSetting
impl StructuralPartialEq for ModuleSetting
Auto Trait Implementations
impl RefUnwindSafe for ModuleSetting
impl Send for ModuleSetting
impl Sync for ModuleSetting
impl Unpin for ModuleSetting
impl UnwindSafe for ModuleSetting
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more