pub enum CoreTemplatePropertyKind<'a> {
Show 13 variants
String(BoxedTemplateProperty<'a, String>),
StringList(BoxedTemplateProperty<'a, Vec<String>>),
Boolean(BoxedTemplateProperty<'a, bool>),
Integer(BoxedTemplateProperty<'a, i64>),
IntegerOpt(BoxedTemplateProperty<'a, Option<i64>>),
ConfigValue(BoxedTemplateProperty<'a, ConfigValue>),
Signature(BoxedTemplateProperty<'a, Signature>),
Email(BoxedTemplateProperty<'a, Email>),
SizeHint(BoxedTemplateProperty<'a, SizeHint>),
Timestamp(BoxedTemplateProperty<'a, Timestamp>),
TimestampRange(BoxedTemplateProperty<'a, TimestampRange>),
Template(Box<dyn Template + 'a>),
ListTemplate(Box<dyn ListTemplate + 'a>),
}Variants§
String(BoxedTemplateProperty<'a, String>)
StringList(BoxedTemplateProperty<'a, Vec<String>>)
Boolean(BoxedTemplateProperty<'a, bool>)
Integer(BoxedTemplateProperty<'a, i64>)
IntegerOpt(BoxedTemplateProperty<'a, Option<i64>>)
ConfigValue(BoxedTemplateProperty<'a, ConfigValue>)
Signature(BoxedTemplateProperty<'a, Signature>)
Email(BoxedTemplateProperty<'a, Email>)
SizeHint(BoxedTemplateProperty<'a, SizeHint>)
Timestamp(BoxedTemplateProperty<'a, Timestamp>)
TimestampRange(BoxedTemplateProperty<'a, TimestampRange>)
Template(Box<dyn Template + 'a>)
ListTemplate(Box<dyn ListTemplate + 'a>)
Trait Implementations§
Source§impl<'a> CoreTemplatePropertyVar<'a> for CoreTemplatePropertyKind<'a>
impl<'a> CoreTemplatePropertyVar<'a> for CoreTemplatePropertyKind<'a>
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>>
Source§fn try_into_stringify(self) -> Option<BoxedTemplateProperty<'a, String>>
fn try_into_stringify(self) -> Option<BoxedTemplateProperty<'a, String>>
Transforms into a string property by formatting the value if needed.
fn try_into_serialize(self) -> Option<BoxedSerializeProperty<'a>>
fn try_into_template(self) -> Option<Box<dyn Template + 'a>>
Source§fn 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.Source§fn 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.Source§impl<'a> WrapTemplateProperty<'a, (usize, Option<usize>)> for CoreTemplatePropertyKind<'a>
impl<'a> WrapTemplateProperty<'a, (usize, Option<usize>)> for CoreTemplatePropertyKind<'a>
fn wrap_property(property: BoxedTemplateProperty<'a, SizeHint>) -> Self
Source§impl<'a> WrapTemplateProperty<'a, Email> for CoreTemplatePropertyKind<'a>
impl<'a> WrapTemplateProperty<'a, Email> for CoreTemplatePropertyKind<'a>
fn wrap_property(property: BoxedTemplateProperty<'a, Email>) -> Self
Source§impl<'a> WrapTemplateProperty<'a, Option<i64>> for CoreTemplatePropertyKind<'a>
impl<'a> WrapTemplateProperty<'a, Option<i64>> for CoreTemplatePropertyKind<'a>
fn wrap_property(property: BoxedTemplateProperty<'a, Option<i64>>) -> Self
Source§impl<'a> WrapTemplateProperty<'a, Signature> for CoreTemplatePropertyKind<'a>
impl<'a> WrapTemplateProperty<'a, Signature> for CoreTemplatePropertyKind<'a>
fn wrap_property(property: BoxedTemplateProperty<'a, Signature>) -> Self
Source§impl<'a> WrapTemplateProperty<'a, String> for CoreTemplatePropertyKind<'a>
impl<'a> WrapTemplateProperty<'a, String> for CoreTemplatePropertyKind<'a>
fn wrap_property(property: BoxedTemplateProperty<'a, String>) -> Self
Source§impl<'a> WrapTemplateProperty<'a, Timestamp> for CoreTemplatePropertyKind<'a>
impl<'a> WrapTemplateProperty<'a, Timestamp> for CoreTemplatePropertyKind<'a>
fn wrap_property(property: BoxedTemplateProperty<'a, Timestamp>) -> Self
Source§impl<'a> WrapTemplateProperty<'a, TimestampRange> for CoreTemplatePropertyKind<'a>
impl<'a> WrapTemplateProperty<'a, TimestampRange> for CoreTemplatePropertyKind<'a>
fn wrap_property(property: BoxedTemplateProperty<'a, TimestampRange>) -> Self
Source§impl<'a> WrapTemplateProperty<'a, Value> for CoreTemplatePropertyKind<'a>
impl<'a> WrapTemplateProperty<'a, Value> for CoreTemplatePropertyKind<'a>
fn wrap_property(property: BoxedTemplateProperty<'a, ConfigValue>) -> Self
Source§impl<'a> WrapTemplateProperty<'a, Vec<String>> for CoreTemplatePropertyKind<'a>
impl<'a> WrapTemplateProperty<'a, Vec<String>> for CoreTemplatePropertyKind<'a>
fn wrap_property(property: BoxedTemplateProperty<'a, Vec<String>>) -> Self
Source§impl<'a> WrapTemplateProperty<'a, bool> for CoreTemplatePropertyKind<'a>
impl<'a> WrapTemplateProperty<'a, bool> for CoreTemplatePropertyKind<'a>
fn wrap_property(property: BoxedTemplateProperty<'a, bool>) -> Self
Source§impl<'a> WrapTemplateProperty<'a, i64> for CoreTemplatePropertyKind<'a>
impl<'a> WrapTemplateProperty<'a, i64> for CoreTemplatePropertyKind<'a>
fn wrap_property(property: BoxedTemplateProperty<'a, i64>) -> Self
Auto Trait Implementations§
impl<'a> Freeze for CoreTemplatePropertyKind<'a>
impl<'a> !RefUnwindSafe for CoreTemplatePropertyKind<'a>
impl<'a> !Send for CoreTemplatePropertyKind<'a>
impl<'a> !Sync for CoreTemplatePropertyKind<'a>
impl<'a> Unpin for CoreTemplatePropertyKind<'a>
impl<'a> !UnwindSafe for CoreTemplatePropertyKind<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more