Struct fluence_app_service::WithContext
source · pub struct WithContext<'c, T> {
pub context: &'c ConfigContext,
pub data: T,
}
Fields§
§context: &'c ConfigContext
§data: T
Trait Implementations§
source§impl<'c> TryFrom<WithContext<'c, TomlMarineModuleConfig>> for MarineModuleConfig
impl<'c> TryFrom<WithContext<'c, TomlMarineModuleConfig>> for MarineModuleConfig
§type Error = MarineError
type Error = MarineError
The type returned in the event of a conversion error.
source§fn try_from(
toml_config: WithContext<'c, TomlMarineModuleConfig>
) -> Result<MarineModuleConfig, <MarineModuleConfig as TryFrom<WithContext<'c, TomlMarineModuleConfig>>>::Error>
fn try_from( toml_config: WithContext<'c, TomlMarineModuleConfig> ) -> Result<MarineModuleConfig, <MarineModuleConfig as TryFrom<WithContext<'c, TomlMarineModuleConfig>>>::Error>
Performs the conversion.
source§impl<'c> TryFrom<WithContext<'c, TomlMarineNamedModuleConfig>> for ModuleDescriptor
impl<'c> TryFrom<WithContext<'c, TomlMarineNamedModuleConfig>> for ModuleDescriptor
§type Error = MarineError
type Error = MarineError
The type returned in the event of a conversion error.
source§fn try_from(
config: WithContext<'c, TomlMarineNamedModuleConfig>
) -> Result<ModuleDescriptor, <ModuleDescriptor as TryFrom<WithContext<'c, TomlMarineNamedModuleConfig>>>::Error>
fn try_from( config: WithContext<'c, TomlMarineNamedModuleConfig> ) -> Result<ModuleDescriptor, <ModuleDescriptor as TryFrom<WithContext<'c, TomlMarineNamedModuleConfig>>>::Error>
Performs the conversion.