implement Default traits

This commit is contained in:
yggverse 2025-01-12 14:08:30 +02:00
parent 1a0b31e695
commit 9b214b1469
55 changed files with 330 additions and 0 deletions

View file

@ -15,6 +15,12 @@ pub struct Action {
pub update: Rc<Update>,
}
impl Default for Action {
fn default() -> Self {
Self::new()
}
}
impl Action {
// Constructors

View file

@ -11,6 +11,12 @@ pub struct Cancel {
pub action: SimpleAction,
}
impl Default for Cancel {
fn default() -> Self {
Self::new()
}
}
impl Cancel {
// Constructors

View file

@ -11,6 +11,12 @@ pub struct Complete {
pub action: SimpleAction,
}
impl Default for Complete {
fn default() -> Self {
Self::new()
}
}
impl Complete {
// Constructors

View file

@ -11,6 +11,12 @@ pub struct Update {
pub action: SimpleAction,
}
impl Default for Update {
fn default() -> Self {
Self::new()
}
}
impl Update {
// Constructors

View file

@ -11,6 +11,12 @@ pub struct Cancel {
pub button: Button,
}
impl Default for Cancel {
fn default() -> Self {
Self::new()
}
}
impl Cancel {
// Constructors

View file

@ -11,6 +11,12 @@ pub struct Open {
pub button: Button,
}
impl Default for Open {
fn default() -> Self {
Self::new()
}
}
impl Open {
// Constructors

View file

@ -9,6 +9,12 @@ pub struct Progress {
pub spinner: Spinner,
}
impl Default for Progress {
fn default() -> Self {
Self::new()
}
}
impl Progress {
// Constructors

View file

@ -14,6 +14,12 @@ pub struct Status {
pub label: Label,
}
impl Default for Status {
fn default() -> Self {
Self::new()
}
}
impl Status {
// Constructors