Trait jconfig::field::Field
[−]
[src]
pub trait Field: Display + Any + FieldClone { fn key() -> &'static str
where
Self: Sized; fn decode(raw: &RawValue) -> Result<Self>
where
Self: Sized; fn encode(&self) -> RawValue; }
Any object that will represent a config field.
Required Methods
fn key() -> &'static str where
Self: Sized,
Self: Sized,
Returns the key of the config field.
fn decode(raw: &RawValue) -> Result<Self> where
Self: Sized,
Self: Sized,