settings/factory_reset/
types.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

use serde::{Deserialize, Serialize};

#[derive(Debug, Copy, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct FactoryResetInfo {
    pub is_local_reset_allowed: bool,
}

impl FactoryResetInfo {
    pub const fn new(is_local_reset_allowed: bool) -> Self {
        Self { is_local_reset_allowed }
    }
}