pub trait CoreTemplatePropertyVar<'a> {
Show 20 methods
// Required methods
fn wrap_string(property: BoxedTemplateProperty<'a, String>) -> Self;
fn wrap_string_list(
property: BoxedTemplateProperty<'a, Vec<String>>,
) -> Self;
fn wrap_boolean(property: BoxedTemplateProperty<'a, bool>) -> Self;
fn wrap_integer(property: BoxedTemplateProperty<'a, i64>) -> Self;
fn wrap_integer_opt(
property: BoxedTemplateProperty<'a, Option<i64>>,
) -> Self;
fn wrap_config_value(
property: BoxedTemplateProperty<'a, ConfigValue>,
) -> Self;
fn wrap_signature(property: BoxedTemplateProperty<'a, Signature>) -> Self;
fn wrap_email(property: BoxedTemplateProperty<'a, Email>) -> Self;
fn wrap_size_hint(property: BoxedTemplateProperty<'a, SizeHint>) -> Self;
fn wrap_timestamp(property: BoxedTemplateProperty<'a, Timestamp>) -> Self;
fn wrap_timestamp_range(
property: BoxedTemplateProperty<'a, TimestampRange>,
) -> Self;
fn wrap_template(template: Box<dyn Template + 'a>) -> Self;
fn wrap_list_template(template: Box<dyn ListTemplate + 'a>) -> Self;
fn type_name(&self) -> &'static str;
fn try_into_boolean(self) -> Option<BoxedTemplateProperty<'a, bool>>;
fn try_into_integer(self) -> Option<BoxedTemplateProperty<'a, i64>>;
fn try_into_plain_text(self) -> Option<BoxedTemplateProperty<'a, String>>;
fn try_into_template(self) -> Option<Box<dyn Template + 'a>>;
fn try_into_eq(self, other: Self) -> Option<BoxedTemplateProperty<'a, bool>>;
fn try_into_cmp(
self,
other: Self,
) -> Option<BoxedTemplateProperty<'a, Ordering>>;
}Expand description
Wrapper for the core template property types.
Required Methods§
fn wrap_string(property: BoxedTemplateProperty<'a, String>) -> Self
fn wrap_string_list(property: BoxedTemplateProperty<'a, Vec<String>>) -> Self
fn wrap_boolean(property: BoxedTemplateProperty<'a, bool>) -> Self
fn wrap_integer(property: BoxedTemplateProperty<'a, i64>) -> Self
fn wrap_integer_opt(property: BoxedTemplateProperty<'a, Option<i64>>) -> Self
fn wrap_config_value(property: BoxedTemplateProperty<'a, ConfigValue>) -> Self
fn wrap_signature(property: BoxedTemplateProperty<'a, Signature>) -> Self
fn wrap_email(property: BoxedTemplateProperty<'a, Email>) -> Self
fn wrap_size_hint(property: BoxedTemplateProperty<'a, SizeHint>) -> Self
fn wrap_timestamp(property: BoxedTemplateProperty<'a, Timestamp>) -> Self
fn wrap_timestamp_range( property: BoxedTemplateProperty<'a, TimestampRange>, ) -> Self
fn wrap_template(template: Box<dyn Template + 'a>) -> Self
fn wrap_list_template(template: Box<dyn ListTemplate + 'a>) -> Self
fn try_into_boolean(self) -> Option<BoxedTemplateProperty<'a, bool>>
fn try_into_integer(self) -> Option<BoxedTemplateProperty<'a, i64>>
fn try_into_plain_text(self) -> Option<BoxedTemplateProperty<'a, String>>
fn try_into_template(self) -> Option<Box<dyn Template + 'a>>
Sourcefn try_into_eq(self, other: Self) -> Option<BoxedTemplateProperty<'a, bool>>
fn try_into_eq(self, other: Self) -> Option<BoxedTemplateProperty<'a, bool>>
Transforms into a property that will evaluate to self == other.
Sourcefn try_into_cmp(
self,
other: Self,
) -> Option<BoxedTemplateProperty<'a, Ordering>>
fn try_into_cmp( self, other: Self, ) -> Option<BoxedTemplateProperty<'a, Ordering>>
Transforms into a property that will evaluate to an Ordering.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.