pub struct NotificationTemplate { /* private fields */ }Expand description
A template for creating notifications: each build creates a new
notification from the content.
Implementations§
Source§impl NotificationTemplate
impl NotificationTemplate
Sourcepub fn content(&self) -> Option<BoxedValue>
pub fn content(&self) -> Option<BoxedValue>
Gets or sets the content of the template: deferred content built on each
build.
pub fn set_content(&self, value: Option<BoxedValue>)
Trait Implementations§
Source§impl Default for NotificationTemplate
impl Default for NotificationTemplate
Source§impl ITemplate for NotificationTemplate
impl ITemplate for NotificationTemplate
Source§fn build(&self) -> BoxedValue
fn build(&self) -> BoxedValue
Builds the notification from the template, as an optional notification.
Source§impl MarkupTyped for NotificationTemplate
impl MarkupTyped for NotificationTemplate
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Auto Trait Implementations§
impl !Freeze for NotificationTemplate
impl !RefUnwindSafe for NotificationTemplate
impl !Send for NotificationTemplate
impl !Sync for NotificationTemplate
impl !UnwindSafe for NotificationTemplate
impl Unpin for NotificationTemplate
impl UnsafeUnpin for NotificationTemplate
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more