mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-12-22 22:59:27 +00:00
fix: implement default for Xvb state
This commit is contained in:
parent
d76abe1058
commit
f41e6c9647
1 changed files with 16 additions and 1 deletions
|
@ -243,7 +243,7 @@ pub struct Xmrig {
|
|||
pub token: String,
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq, Debug, Deserialize, Serialize, Default)]
|
||||
#[derive(Clone, PartialEq, Debug, Deserialize, Serialize)]
|
||||
pub struct Xvb {
|
||||
pub simple: bool,
|
||||
pub token: String,
|
||||
|
@ -399,6 +399,21 @@ impl Default for Xmrig {
|
|||
}
|
||||
}
|
||||
|
||||
impl Default for Xvb {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
simple: true,
|
||||
token: "".to_string(),
|
||||
simple_hero_mode: false,
|
||||
mode: XvbMode::Auto,
|
||||
manual_amount_raw: 0.0,
|
||||
manual_slider_amount: 0.0,
|
||||
manual_donation_level: ManualDonationLevel::Donor,
|
||||
manual_donation_metric: ManualDonationMetric::Hash,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Version {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
|
|
Loading…
Reference in a new issue