settings/privacy/types.rs
1// Copyright 2021 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5use serde::{Deserialize, Serialize};
6use settings_common::inspect::event::Nameable;
7
8#[derive(PartialEq, Default, Debug, Clone, Copy, Serialize, Deserialize)]
9pub struct PrivacyInfo {
10 pub user_data_sharing_consent: Option<bool>,
11}
12
13impl Nameable for PrivacyInfo {
14 const NAME: &str = "Privacy";
15}