pub struct ConfigResolution { /* private fields */ }Expand description
The result of resolve_config (config-resolution/v1): the snapshot
when the input is valid, and every safe diagnostic either way.
Implementations§
Source§impl ConfigResolution
impl ConfigResolution
Sourcepub fn as_json(&self) -> &str
pub fn as_json(&self) -> &str
The envelope { schema, ok, snapshot, diagnostics } as UTF-8 JSON,
schema first. snapshot is null when ok is false.
Sourcepub const fn snapshot(&self) -> Option<&ConfigSnapshot>
pub const fn snapshot(&self) -> Option<&ConfigSnapshot>
The snapshot, None when the input was rejected.
Sourcepub fn diagnostics(&self) -> &[ConfigDiagnostic]
pub fn diagnostics(&self) -> &[ConfigDiagnostic]
Every diagnostic: errors first, then in document order, at most 256.
Trait Implementations§
Source§impl Clone for ConfigResolution
impl Clone for ConfigResolution
Source§impl Debug for ConfigResolution
impl Debug for ConfigResolution
impl Eq for ConfigResolution
Source§impl PartialEq for ConfigResolution
impl PartialEq for ConfigResolution
impl StructuralPartialEq for ConfigResolution
Auto Trait Implementations§
impl Freeze for ConfigResolution
impl RefUnwindSafe for ConfigResolution
impl Send for ConfigResolution
impl Sync for ConfigResolution
impl Unpin for ConfigResolution
impl UnsafeUnpin for ConfigResolution
impl UnwindSafe for ConfigResolution
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