jj_cli::template_builder

Trait IntoTemplateProperty

source
pub trait IntoTemplateProperty<'a> {
    // Required methods
    fn type_name(&self) -> &'static str;
    fn try_into_boolean(
        self,
    ) -> Option<Box<dyn TemplateProperty<Output = bool> + 'a>>;
    fn try_into_integer(
        self,
    ) -> Option<Box<dyn TemplateProperty<Output = i64> + 'a>>;
    fn try_into_plain_text(
        self,
    ) -> Option<Box<dyn TemplateProperty<Output = String> + 'a>>;
    fn try_into_template(self) -> Option<Box<dyn Template + 'a>>;
}
Expand description

Provides access to basic template property types.

Required Methods§

source

fn type_name(&self) -> &'static str

Type name of the property output.

source

fn try_into_boolean( self, ) -> Option<Box<dyn TemplateProperty<Output = bool> + 'a>>

source

fn try_into_integer( self, ) -> Option<Box<dyn TemplateProperty<Output = i64> + 'a>>

source

fn try_into_plain_text( self, ) -> Option<Box<dyn TemplateProperty<Output = String> + 'a>>

source

fn try_into_template(self) -> Option<Box<dyn Template + 'a>>

Implementors§