1/*
2 * Copyright 2018-present Facebook, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#pragma once
17
18#include <folly/Range.h>
19
20namespace folly {
21namespace settings {
22
23/**
24 * Static information about the setting definition
25 */
26struct SettingMetadata {
27 /**
28 * Project string.
29 */
30 folly::StringPiece project;
31
32 /**
33 * Setting name within the project.
34 */
35 folly::StringPiece name;
36
37 /**
38 * String representation of the type.
39 */
40 folly::StringPiece typeStr;
41
42 /**
43 * typeid() of the type.
44 */
45 const std::type_info& typeId;
46
47 /**
48 * String representation of the default value.
49 * (note: string literal default values will be stringified with quotes)
50 */
51 folly::StringPiece defaultStr;
52
53 /**
54 * Setting description field.
55 */
56 folly::StringPiece description;
57};
58
59} // namespace settings
60} // namespace folly
61