Trait configuration::Configuration [−][src]
The Configuration trait
There are four type of fields inside derived Configuration struct:
#[config(skip)]field, these fields will not return bydiffmethod and have not effect ofupdatemethod#[config(hidden)]field, these fields have the same effect of#[config(skip)]field, in addition, these fields will not appear at the output of serializingSelf::Encoder#[config(submodule)]field, these fields represent the submodule, and should also deriveConfiguration- normal fields, the type of these fields should be implment
IntoandFromforConfigValue
Associated Types
Loading content...Required methods
fn diff(&self, _: &Self) -> ConfigChange[src]
Compare to other config, return the difference
fn update(&mut self, _: ConfigChange)[src]
Update config with difference returned by diff
fn get_encoder(&'a self) -> Self::Encoder[src]
Get encoder that can be serialize with serde::Serializer
with the disappear of #[config(hidden)] field
fn typed(&self) -> ConfigChange[src]
Get all fields and their type of the config