pub struct ResolvedConfiguration { /* private fields */ }Implementations§
Source§impl ResolvedConfiguration
impl ResolvedConfiguration
pub fn ordinal(&self) -> u64
Sourcepub fn value(&self, key: &str) -> Option<&Value>
pub fn value(&self, key: &str) -> Option<&Value>
Borrows an exact leaf or lazily reconstructed nested subtree.
pub fn require_value(&self, key: &str) -> Result<&Value, ConfigurationError>
pub fn decode_value<T>(&self, key: &str) -> Result<T, ConfigurationError>where
T: DeserializeOwned,
pub fn decode_values<Values, Keys>(
&self,
keys: Keys,
) -> Result<Values, ConfigurationError>where
Keys: ParameterKeyTuple<Values>,
pub fn contains(&self, key: &str) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn keys(&self) -> impl Iterator<Item = &str>
pub fn keys(&self) -> impl Iterator<Item = &str>
Iterates canonical terminal parameter identifiers.
pub fn iter(&self) -> impl Iterator<Item = (&str, &Value)>
Sourcepub fn to_json(&self) -> Result<String, ConfigurationError>
pub fn to_json(&self) -> Result<String, ConfigurationError>
Serializes the complete rehydrated nested configuration document.
Sourcepub fn to_json_value(&self) -> Value
pub fn to_json_value(&self) -> Value
Clones the complete rehydrated nested configuration document.
The document is cached after its first reconstruction. This method is intended for durable provenance records that must own their JSON value.
Trait Implementations§
Source§impl Clone for ResolvedConfiguration
impl Clone for ResolvedConfiguration
Auto Trait Implementations§
impl !Freeze for ResolvedConfiguration
impl RefUnwindSafe for ResolvedConfiguration
impl Send for ResolvedConfiguration
impl Sync for ResolvedConfiguration
impl Unpin for ResolvedConfiguration
impl UnsafeUnpin for ResolvedConfiguration
impl UnwindSafe for ResolvedConfiguration
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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