pub struct DefaultRawPropertyConfig { /* private fields */ }
Implementations§
Source§impl DefaultRawPropertyConfig
impl DefaultRawPropertyConfig
pub fn check_valid(&self)
Trait Implementations§
Source§impl Clone for DefaultRawPropertyConfig
impl Clone for DefaultRawPropertyConfig
Source§fn clone(&self) -> DefaultRawPropertyConfig
fn clone(&self) -> DefaultRawPropertyConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DefaultRawPropertyConfig
impl Debug for DefaultRawPropertyConfig
Source§impl Hash for DefaultRawPropertyConfig
impl Hash for DefaultRawPropertyConfig
Source§impl PartialEq for DefaultRawPropertyConfig
impl PartialEq for DefaultRawPropertyConfig
Source§impl RawPropertyConfig for DefaultRawPropertyConfig
impl RawPropertyConfig for DefaultRawPropertyConfig
Source§fn get_raw_key(&self) -> Box<dyn Key>
fn get_raw_key(&self) -> Box<dyn Key>
a unique key in a configuration manager to identify a unique property,
Source§fn get_value_type(&self) -> TypeId
fn get_value_type(&self) -> TypeId
type of the property value,
Source§fn get_raw_default_value(&self) -> Option<Box<dyn Value>>
fn get_raw_default_value(&self) -> Option<Box<dyn Value>>
default value of the property Read more
Source§fn get_value_converters(&self) -> &[Box<dyn RawTypeConverter>]
fn get_value_converters(&self) -> &[Box<dyn RawTypeConverter>]
type converters used to convert values of different types,
for example, some configuration source has string value,
but integer is needed, so it’s necessary to provide a string-to-int converter Read more
Source§fn get_value_filter(&self) -> Option<&dyn RawValueFilter>
fn get_value_filter(&self) -> Option<&dyn RawValueFilter>
a chance for the user to check the value before using a property value provided by a configuration source,
filter input is non-null, if output is null, the value will be ignored,
if output is non-None, output will be used as the property value Read more
Source§fn is_static(&self) -> bool
fn is_static(&self) -> bool
whether the property is static (not dynamically changeable) Read more
Source§fn is_required(&self) -> bool
fn is_required(&self) -> bool
whether the property is required (must be configured or have a default value) Read more
fn clone_boxed(&self) -> Box<dyn RawPropertyConfig>
fn to_boxed(self) -> Box<dyn RawPropertyConfig>
fn as_trait_ref(&self) -> &dyn RawPropertyConfig
fn as_trait_mut(&mut self) -> &mut dyn RawPropertyConfig
impl Eq for DefaultRawPropertyConfig
impl Send for DefaultRawPropertyConfig
impl Sync for DefaultRawPropertyConfig
Auto Trait Implementations§
impl Freeze for DefaultRawPropertyConfig
impl !RefUnwindSafe for DefaultRawPropertyConfig
impl Unpin for DefaultRawPropertyConfig
impl !UnwindSafe for DefaultRawPropertyConfig
Blanket Implementations§
Source§impl<T> AnyExtension for Twhere
T: ?Sized,
impl<T> AnyExtension for Twhere
T: ?Sized,
Source§impl<T> AsAny for Twhere
T: Any,
impl<T> AsAny for Twhere
T: Any,
fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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