NotificationTemplate
struct · ferroui-xaml-interactivity · v0.5.0
struct NotificationTemplate
A template for creating notifications: each build creates a new
notification from the content.
Members
new
fn new() -> Rc<Self>
Creates an empty template.
content
fn content(self: &Self) -> Option<BoxedValue>
Gets or sets the content of the template: deferred content built on each
build.
set_content
fn set_content(self: &Self, value: Option<BoxedValue>)
build
fn build(self: &Self) -> Option<Rc<dyn INotification>>
Builds the notification from the template.
Panics
Panics if the content is not template content, or builds something else than a notification.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyAnyValueClassDefaultsErasedDestructorIntoEitherDefaultITemplatePartialEqMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.