mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
reduce unused code and module subscriptions
This commit is contained in:
1 parent
c95ad4dd55
commit
37ccf0f60d
4 files changed
-50
No files matched your search
@@ -97,7 +97,6 @@ pub mod http_server;
|
||||
pub mod memory_cache;
|
||||
pub mod model;
|
||||
pub mod server_state;
|
||||
pub mod subscriptions;
|
||||
pub mod threads;
|
||||
pub mod util;
|
||||
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
pub mod subscription_plan;
|
||||
pub mod subscription_plan_list;
|
||||
@@ -1,47 +0,0 @@
|
||||
|
||||
/**
|
||||
|
||||
User has:
|
||||
|
||||
fakeyou, pro
|
||||
fakeyou, pro
|
||||
stream, basic
|
||||
|
||||
*/
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct SubscriptionPlan {
|
||||
/// This is the website or platform the subscription exists on.
|
||||
/// These should be distinct namespaces.
|
||||
/// It must be human-readability friendly, consist of only lowercase alphanumerics,
|
||||
/// underscores, and hyphens, and be 32 characters or fewer.
|
||||
pub category_key: String,
|
||||
|
||||
/// This is the unique identifier for the subscription (must be unique across namespaces!)
|
||||
/// It must be human-readability friendly, consist of only lowercase alphanumerics,
|
||||
/// underscores, and hyphens, and be 32 characters or fewer.
|
||||
pub product_key: String,
|
||||
|
||||
/// The stripe product ID for this plan
|
||||
pub stripe_product_id: String,
|
||||
pub stripe_test_product_id: String,
|
||||
|
||||
/// The stripe price ID for this plan
|
||||
pub stripe_price_ids: Vec<String>,
|
||||
pub stripe_test_price_ids: Vec<String>,
|
||||
}
|
||||
|
||||
impl SubscriptionPlan {
|
||||
|
||||
pub fn has_feature_foo(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
pub fn priority_level_tts(&self) -> u32 {
|
||||
0
|
||||
}
|
||||
|
||||
pub fn priority_level_tts_api(&self) -> Option<u32> {
|
||||
Some(0)
|
||||
}
|
||||
}
|
||||
Whitespace-only changes.
Reference in new issue
Block a user