pub struct FeatureFlags { /* private fields */ }Expand description
Feature Flag 관리자
Implementations§
Source§impl FeatureFlags
impl FeatureFlags
Sourcepub fn with_persistence(self, path: PathBuf) -> Self
pub fn with_persistence(self, path: PathBuf) -> Self
영속성 경로 설정
Sourcepub fn is_enabled(&self, feature: Feature) -> bool
pub fn is_enabled(&self, feature: Feature) -> bool
Feature 활성화 여부 확인
Sourcepub fn load_from_env(&self)
pub fn load_from_env(&self)
환경 변수에서 로드
Sourcepub fn load_from_file(&self) -> DbxResult<()>
pub fn load_from_file(&self) -> DbxResult<()>
파일에서 로드
Sourcepub fn save_to_file(&self) -> DbxResult<()>
pub fn save_to_file(&self) -> DbxResult<()>
파일에 저장
Trait Implementations§
Auto 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more