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

Provides access to basic template property types.

Required Methods§

source

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

source

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

source

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

source

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

Implementors§

source§

impl<'a, I: 'a> IntoTemplateProperty<'a, I> for CoreTemplatePropertyKind<'a, I>