Struct libadwaita::builders::ToastBuilder
source · pub struct ToastBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct Toast
objects.
Implementations§
source§impl ToastBuilder
impl ToastBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new ToastBuilder
.
pub fn action_name(self, action_name: &str) -> Self
pub fn action_target(self, action_target: &Variant) -> Self
pub fn custom_title(self, custom_title: &impl IsA<Widget>) -> Self
Available on crate feature
v1_2
only.pub fn priority(self, priority: ToastPriority) -> Self
pub fn timeout(self, timeout: u32) -> Self
pub fn title(self, title: &str) -> Self
Trait Implementations§
source§impl Clone for ToastBuilder
impl Clone for ToastBuilder
source§fn clone(&self) -> ToastBuilder
fn clone(&self) -> ToastBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for ToastBuilder
impl Default for ToastBuilder
source§fn default() -> ToastBuilder
fn default() -> ToastBuilder
Returns the “default value” for a type. Read more