pub enum GenericTemplatePropertyKind<'a, C> {
Core(CoreTemplatePropertyKind<'a>),
Self_(BoxedTemplateProperty<'a, C>),
}Variants§
Core(CoreTemplatePropertyKind<'a>)
Self_(BoxedTemplateProperty<'a, C>)
Trait Implementations§
Source§impl<'a, C> CoreTemplatePropertyVar<'a> for GenericTemplatePropertyKind<'a, C>where
C: Serialize + 'a,
impl<'a, C> CoreTemplatePropertyVar<'a> for GenericTemplatePropertyKind<'a, C>where
C: Serialize + '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, C> WrapTemplateProperty<'a, (usize, Option<usize>)> for GenericTemplatePropertyKind<'a, C>
impl<'a, C> WrapTemplateProperty<'a, (usize, Option<usize>)> for GenericTemplatePropertyKind<'a, C>
fn wrap_property(property: BoxedTemplateProperty<'a, SizeHint>) -> Self
Source§impl<'a, C> WrapTemplateProperty<'a, Email> for GenericTemplatePropertyKind<'a, C>
impl<'a, C> WrapTemplateProperty<'a, Email> for GenericTemplatePropertyKind<'a, C>
fn wrap_property(property: BoxedTemplateProperty<'a, Email>) -> Self
Source§impl<'a, C> WrapTemplateProperty<'a, Option<i64>> for GenericTemplatePropertyKind<'a, C>
impl<'a, C> WrapTemplateProperty<'a, Option<i64>> for GenericTemplatePropertyKind<'a, C>
fn wrap_property(property: BoxedTemplateProperty<'a, Option<i64>>) -> Self
Source§impl<'a, C> WrapTemplateProperty<'a, Signature> for GenericTemplatePropertyKind<'a, C>
impl<'a, C> WrapTemplateProperty<'a, Signature> for GenericTemplatePropertyKind<'a, C>
fn wrap_property(property: BoxedTemplateProperty<'a, Signature>) -> Self
Source§impl<'a, C> WrapTemplateProperty<'a, String> for GenericTemplatePropertyKind<'a, C>
impl<'a, C> WrapTemplateProperty<'a, String> for GenericTemplatePropertyKind<'a, C>
fn wrap_property(property: BoxedTemplateProperty<'a, String>) -> Self
Source§impl<'a, C> WrapTemplateProperty<'a, Timestamp> for GenericTemplatePropertyKind<'a, C>
impl<'a, C> WrapTemplateProperty<'a, Timestamp> for GenericTemplatePropertyKind<'a, C>
fn wrap_property(property: BoxedTemplateProperty<'a, Timestamp>) -> Self
Source§impl<'a, C> WrapTemplateProperty<'a, TimestampRange> for GenericTemplatePropertyKind<'a, C>
impl<'a, C> WrapTemplateProperty<'a, TimestampRange> for GenericTemplatePropertyKind<'a, C>
fn wrap_property(property: BoxedTemplateProperty<'a, TimestampRange>) -> Self
Source§impl<'a, C> WrapTemplateProperty<'a, Value> for GenericTemplatePropertyKind<'a, C>
impl<'a, C> WrapTemplateProperty<'a, Value> for GenericTemplatePropertyKind<'a, C>
fn wrap_property(property: BoxedTemplateProperty<'a, ConfigValue>) -> Self
Source§impl<'a, C> WrapTemplateProperty<'a, Vec<String>> for GenericTemplatePropertyKind<'a, C>
impl<'a, C> WrapTemplateProperty<'a, Vec<String>> for GenericTemplatePropertyKind<'a, C>
fn wrap_property(property: BoxedTemplateProperty<'a, Vec<String>>) -> Self
Source§impl<'a, C> WrapTemplateProperty<'a, bool> for GenericTemplatePropertyKind<'a, C>
impl<'a, C> WrapTemplateProperty<'a, bool> for GenericTemplatePropertyKind<'a, C>
fn wrap_property(property: BoxedTemplateProperty<'a, bool>) -> Self
Source§impl<'a, C> WrapTemplateProperty<'a, i64> for GenericTemplatePropertyKind<'a, C>
impl<'a, C> WrapTemplateProperty<'a, i64> for GenericTemplatePropertyKind<'a, C>
fn wrap_property(property: BoxedTemplateProperty<'a, i64>) -> Self
Source§impl WrapTemplateProperty<'static, AnnotatedValue> for GenericTemplatePropertyKind<'static, AnnotatedValue>
impl WrapTemplateProperty<'static, AnnotatedValue> for GenericTemplatePropertyKind<'static, AnnotatedValue>
fn wrap_property( property: BoxedTemplateProperty<'static, AnnotatedValue>, ) -> Self
Auto Trait Implementations§
impl<'a, C> Freeze for GenericTemplatePropertyKind<'a, C>
impl<'a, C> !RefUnwindSafe for GenericTemplatePropertyKind<'a, C>
impl<'a, C> !Send for GenericTemplatePropertyKind<'a, C>
impl<'a, C> !Sync for GenericTemplatePropertyKind<'a, C>
impl<'a, C> Unpin for GenericTemplatePropertyKind<'a, C>
impl<'a, C> !UnwindSafe for GenericTemplatePropertyKind<'a, C>
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