pub struct ConfigCheckResult {
pub valid: bool,
pub errors: Vec<String>,
pub warnings: Vec<String>,
pub error_code: Option<String>,
}Expand description
Result of config validation — errors are fatal, warnings are informational.
Fields§
§valid: bool§errors: Vec<String>§warnings: Vec<String>§error_code: Option<String>Stable UPPER_SNAKE_CASE envelope code when the validator
detects a categorical failure that callers should branch on.
Currently set to "LEGACY_FIELD_PRESENT" when any entry in
LEGACY_TOMBSTONE_KEYS is present.
Trait Implementations§
Source§impl Clone for ConfigCheckResult
impl Clone for ConfigCheckResult
Source§fn clone(&self) -> ConfigCheckResult
fn clone(&self) -> ConfigCheckResult
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 moreAuto Trait Implementations§
impl Freeze for ConfigCheckResult
impl RefUnwindSafe for ConfigCheckResult
impl Send for ConfigCheckResult
impl Sync for ConfigCheckResult
impl Unpin for ConfigCheckResult
impl UnsafeUnpin for ConfigCheckResult
impl UnwindSafe for ConfigCheckResult
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