pub struct SpringConfig {
pub worker: SpringWorkerConfig,
pub memory: SpringMemoryConfig,
pub web_console: SpringWebConsoleConfig,
pub source_reader: SpringSourceReaderConfig,
pub sink_writer: SpringSinkWriterConfig,
}
Expand description
Top-level config.
Fields§
§worker: SpringWorkerConfig
§memory: SpringMemoryConfig
§web_console: SpringWebConsoleConfig
§source_reader: SpringSourceReaderConfig
§sink_writer: SpringSinkWriterConfig
Implementations§
Source§impl SpringConfig
impl SpringConfig
Sourcepub fn new(overwrite_config_toml: &str) -> Result<Self>
pub fn new(overwrite_config_toml: &str) -> Result<Self>
§Failures
- SpringError::InvalidConfig when:
overwrite_config_toml
includes invalid key and/or value.
- SpringError::InvalidFormat when:
overwrite_config_toml
is not valid as TOML.
Sourcepub fn from_toml(overwrite_config_toml: &str) -> Result<SpringConfig>
pub fn from_toml(overwrite_config_toml: &str) -> Result<SpringConfig>
Configuration by TOML format string.
§Parameters
overwrite_config_toml
: TOML format configuration to overwrite default. SeeSPRING_CONFIG_DEFAULT
in spring_config.rs for full-set default configuration.
§Failures
- SpringError::InvalidConfig when:
overwrite_config_toml
includes invalid key and/or value.
- SpringError::InvalidFormat when:
overwrite_config_toml
is not valid as TOML.
Trait Implementations§
Source§impl Clone for SpringConfig
impl Clone for SpringConfig
Source§fn clone(&self) -> SpringConfig
fn clone(&self) -> SpringConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SpringConfig
impl Debug for SpringConfig
Source§impl Default for SpringConfig
impl Default for SpringConfig
Source§impl<'de> Deserialize<'de> for SpringConfig
impl<'de> Deserialize<'de> for SpringConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SpringConfig
impl PartialEq for SpringConfig
impl Eq for SpringConfig
impl StructuralPartialEq for SpringConfig
Auto Trait Implementations§
impl Freeze for SpringConfig
impl RefUnwindSafe for SpringConfig
impl Send for SpringConfig
impl Sync for SpringConfig
impl Unpin for SpringConfig
impl UnwindSafe for SpringConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.