Struct wick_config::AppConfiguration
source · pub struct AppConfiguration { /* private fields */ }Expand description
The internal representation of a Wick manifest.
Implementations§
source§impl AppConfiguration
impl AppConfiguration
sourcepub fn load_from_file(path: impl AsRef<Path>) -> Result<AppConfiguration, Error>
pub fn load_from_file(path: impl AsRef<Path>) -> Result<AppConfiguration, Error>
Load struct from file by trying all the supported file formats.
sourcepub fn load_from_bytes(
source: Option<String>,
bytes: &[u8]
) -> Result<AppConfiguration, Error>
pub fn load_from_bytes( source: Option<String>, bytes: &[u8] ) -> Result<AppConfiguration, Error>
Load struct from bytes by attempting to parse all the supported file formats.
sourcepub fn imports(&self) -> &HashMap<String, ComponentKind>
pub fn imports(&self) -> &HashMap<String, ComponentKind>
Get the application’s imports.
sourcepub fn resources(&self) -> &HashMap<String, ResourceDefinition>
pub fn resources(&self) -> &HashMap<String, ResourceDefinition>
Get the application’s resources.
sourcepub fn triggers(&self) -> &Vec<TriggerDefinition> ⓘ
pub fn triggers(&self) -> &Vec<TriggerDefinition> ⓘ
Get the application’s triggers.
Trait Implementations§
source§impl Clone for AppConfiguration
impl Clone for AppConfiguration
source§fn clone(&self) -> AppConfiguration
fn clone(&self) -> AppConfiguration
Returns a copy 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 AppConfiguration
impl Debug for AppConfiguration
source§impl Default for AppConfiguration
impl Default for AppConfiguration
source§fn default() -> AppConfiguration
fn default() -> AppConfiguration
Returns the “default value” for a type. Read more
source§impl TryFrom<AppConfiguration> for AppConfiguration
impl TryFrom<AppConfiguration> for AppConfiguration
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.