pub struct ActiveProfiles { /* private fields */ }Expand description
Active profiles manager 活动配置文件管理器
Equivalent to Spring’s ConfigurableEnvironment.setActiveProfiles().
等价于Spring的ConfigurableEnvironment.setActiveProfiles()。
Implementations§
Source§impl ActiveProfiles
impl ActiveProfiles
Sourcepub fn set_active(&mut self, profiles: Vec<Profile>)
pub fn set_active(&mut self, profiles: Vec<Profile>)
Set active profiles 设置活动配置文件
Sourcepub fn add_active(&mut self, profile: Profile)
pub fn add_active(&mut self, profile: Profile)
Add an active profile 添加活动配置文件
Sourcepub fn set_defaults(&mut self, profiles: Vec<Profile>)
pub fn set_defaults(&mut self, profiles: Vec<Profile>)
Set default profiles 设置默认配置文件
Trait Implementations§
Source§impl Clone for ActiveProfiles
impl Clone for ActiveProfiles
Source§fn clone(&self) -> ActiveProfiles
fn clone(&self) -> ActiveProfiles
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 moreSource§impl Debug for ActiveProfiles
impl Debug for ActiveProfiles
Auto Trait Implementations§
impl Freeze for ActiveProfiles
impl RefUnwindSafe for ActiveProfiles
impl Send for ActiveProfiles
impl Sync for ActiveProfiles
impl Unpin for ActiveProfiles
impl UnsafeUnpin for ActiveProfiles
impl UnwindSafe for ActiveProfiles
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