pub struct FeatureFlags {
pub meeting_management: bool,
pub database: bool,
}Expand description
Feature flags singleton, lazily initialized from environment variables.
Fields§
§meeting_management: boolEnable meeting lifecycle management (creation, tracking, host controls). Env: FEATURE_MEETING_MANAGEMENT=true
database: boolEnable database connections (PostgreSQL). Env: DATABASE_ENABLED=true
Implementations§
Source§impl FeatureFlags
impl FeatureFlags
Sourcepub fn global() -> &'static Self
pub fn global() -> &'static Self
Get the global feature flags instance. Lazily initialized on first call.
Sourcepub fn meeting_management_enabled() -> bool
pub fn meeting_management_enabled() -> bool
Check if meeting management is enabled. Respects test overrides if set.
Sourcepub fn database_enabled() -> bool
pub fn database_enabled() -> bool
Check if database is enabled.
Trait Implementations§
Source§impl Clone for FeatureFlags
impl Clone for FeatureFlags
Source§fn clone(&self) -> FeatureFlags
fn clone(&self) -> FeatureFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FeatureFlags
impl RefUnwindSafe for FeatureFlags
impl Send for FeatureFlags
impl Sync for FeatureFlags
impl Unpin for FeatureFlags
impl UnsafeUnpin for FeatureFlags
impl UnwindSafe for FeatureFlags
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more