flags.rs

 1use crate::FeatureFlag;
 2
 3pub struct PredictEditsRateCompletionsFeatureFlag;
 4
 5impl FeatureFlag for PredictEditsRateCompletionsFeatureFlag {
 6    const NAME: &'static str = "predict-edits-rate-completions";
 7}
 8
 9pub struct BillingV2FeatureFlag {}
10
11impl FeatureFlag for BillingV2FeatureFlag {
12    const NAME: &'static str = "billing-v2";
13
14    fn enabled_for_all() -> bool {
15        true
16    }
17}
18
19pub struct NotebookFeatureFlag;
20
21impl FeatureFlag for NotebookFeatureFlag {
22    const NAME: &'static str = "notebooks";
23}
24
25pub struct PanicFeatureFlag;
26
27impl FeatureFlag for PanicFeatureFlag {
28    const NAME: &'static str = "panic";
29}
30
31pub struct JjUiFeatureFlag {}
32
33impl FeatureFlag for JjUiFeatureFlag {
34    const NAME: &'static str = "jj-ui";
35}