pub struct AppConfigSnapshot { /* private fields */ }Expand description
One immutable, validated view of an App configuration file.
Commands that need several projections should load this once so every decision is derived from the same bytes on disk.
Implementations§
Source§impl AppConfigSnapshot
impl AppConfigSnapshot
pub fn load(path: &Path) -> Result<Self, AppConfigError>
pub const fn model(&self) -> &ConfigModel
pub const fn app_id(&self) -> &str
pub fn deployable_roles(&self) -> Vec<String>
pub fn bootstrap_roles(&self) -> Vec<String>
pub fn local_root_create_cycles(&self) -> u128
pub fn controllers(&self) -> Vec<String>
pub fn pool_expectations(&self) -> Vec<ConfiguredPoolExpectation>
pub fn role_lifecycle(&self) -> Vec<ConfiguredRoleLifecycle>
pub fn role_kinds(&self) -> BTreeMap<String, String>
pub fn role_capabilities( &self, ) -> Result<BTreeMap<String, Vec<String>>, AppConfigError>
pub fn role_auto_create(&self) -> BTreeSet<String>
pub fn role_topups(&self) -> BTreeMap<String, String>
pub fn role_metrics_profiles(&self) -> BTreeMap<String, String>
pub fn role_details(&self) -> BTreeMap<String, Vec<String>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppConfigSnapshot
impl RefUnwindSafe for AppConfigSnapshot
impl Send for AppConfigSnapshot
impl Sync for AppConfigSnapshot
impl Unpin for AppConfigSnapshot
impl UnsafeUnpin for AppConfigSnapshot
impl UnwindSafe for AppConfigSnapshot
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