Struct plugx_config::configuration::Configuration
source · pub struct Configuration { /* private fields */ }Implementations§
source§impl Configuration
impl Configuration
source§impl Configuration
impl Configuration
pub fn with_source<S>(self, source: S) -> Selfwhere S: Into<Url>,
pub fn add_source<S>(&mut self, source: S)where S: Into<Url>,
pub fn has_source<S>(&mut self, source: S) -> boolwhere S: Into<Url>,
pub fn with_source_and_loader<S, L>(self, source: S, loader: L) -> Selfwhere S: Into<Url>, L: ConfigurationLoader + 'static,
pub fn add_source_and_loader<S, L>(&mut self, source: S, loader: L)where S: Into<Url>, L: ConfigurationLoader + 'static,
pub fn with_source_and_boxed_loader<S>( self, source: S, loader: Box<dyn ConfigurationLoader> ) -> Selfwhere S: Into<Url>,
pub fn add_source_and_boxed_loader<S>( &mut self, source: S, loader: Box<dyn ConfigurationLoader> )where S: Into<Url>,
pub fn remove_source_and_loader<S>(&mut self, source: S) -> boolwhere S: Into<Url>,
pub fn take_boxed_loader<S>( &mut self, source: S ) -> Option<Box<dyn ConfigurationLoader>>where S: Into<Url>,
pub fn get_boxed_loader<S>( &self, source: S ) -> Option<Arc<RwLock<Box<dyn ConfigurationLoader>>>>where S: Into<Url>,
pub fn with_generic_loader<L>(self, loader: L) -> Selfwhere L: ConfigurationLoader + 'static,
pub fn add_generic_loader<L>(&mut self, loader: L)where L: ConfigurationLoader + 'static,
pub fn with_generic_boxed_loader( self, loader: Box<dyn ConfigurationLoader> ) -> Self
pub fn add_generic_boxed_loader(&mut self, loader: Box<dyn ConfigurationLoader>)
source§impl Configuration
impl Configuration
pub fn with_parser<P>(self, parser: P) -> Selfwhere P: ConfigurationParser + 'static,
pub fn add_parser<P>(&mut self, parser: P)where P: ConfigurationParser + 'static,
source§impl Configuration
impl Configuration
pub fn set_whitelist<P: AsRef<str>>(&mut self, whitelist: Vec<P>)
pub fn with_whitelist<P: AsRef<str>>(self, whitelist: Vec<P>) -> Self
source§impl Configuration
impl Configuration
pub fn configuration(&self) -> &HashMap<String, Input>
pub fn configuration_mut(&mut self) -> &mut HashMap<String, Input>
source§impl Configuration
impl Configuration
pub fn with_forget_loaded(self, flag: bool) -> Self
pub fn set_forget_loaded(&mut self, flag: bool)
pub fn forget_loaded(&mut self)
pub fn with_forget_parsed(self, flag: bool) -> Self
pub fn set_forget_parsed(&mut self, flag: bool)
pub fn forget_parsed(&mut self)
source§impl Configuration
impl Configuration
pub fn try_load( &mut self, skip_retryable: bool ) -> Result<(), ConfigurationLoadError>
pub fn try_parse(&mut self) -> Result<(), ConfigurationError>
pub fn merge(&mut self)
pub fn try_validate( &mut self, definitions: &HashMap<String, InputDefinition> ) -> Result<(), InputValidateError>
pub fn try_load_parse_merge( &mut self, skip_retryable: bool ) -> Result<(), ConfigurationError>
pub fn try_load_parse_merge_validate( &mut self, skip_retryable: bool, definitions: &HashMap<String, InputDefinition> ) -> Result<(), ConfigurationError>
Trait Implementations§
source§impl Debug for Configuration
impl Debug for Configuration
Auto Trait Implementations§
impl !RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl !UnwindSafe for Configuration
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