[][src]Trait the_process_foundry::base::AppTrait

pub trait AppTrait {
    fn build(
        instance: AppInstance,
        parent: Option<Rc<dyn ContainerTrait>>
    ) -> Result<Self>
    where
        Self: Sized
;
fn get_name(&self) -> String; fn set_version(&self, instance: AppInstance) -> Result<AppInstance> { ... } }

A data structure containing information used to generate both generate Actions and Events

Required methods

fn build(
    instance: AppInstance,
    parent: Option<Rc<dyn ContainerTrait>>
) -> Result<Self> where
    Self: Sized

Construct the metadata for the module controlling the app instance This is important to make sure the module aligns with the actual installed instance

fn get_name(&self) -> String

Print a standardized "name (version)" for logging purposes

Loading content...

Provided methods

fn set_version(&self, instance: AppInstance) -> Result<AppInstance>

Knows how to get the version number of the installed app (not the module version)

Loading content...

Implementors

impl AppTrait for Bash[src]

fn set_version(&self, _instance: AppInstance) -> Result<AppInstance>[src]

Knows how to get the version number of the installed app (not the module version)

impl AppTrait for DockerCompose[src]

fn set_version(&self, _instance: AppInstance) -> Result<AppInstance>[src]

Knows how to get the version number of the installed app (not the module version)

impl AppTrait for DockerContainer[src]

impl AppTrait for PgBaseBackup[src]

fn set_version(&self, _instance: AppInstance) -> Result<AppInstance>[src]

Knows how to get the version number of the installed app (not the module version)

impl AppTrait for Postgres[src]

fn set_version(&self, _instance: AppInstance) -> Result<AppInstance>[src]

Knows how to get the version number of the installed app (not the module version)

Loading content...