pub struct ConfigValidationReport { /* private fields */ }Expand description
配置校验报告
Implementations§
Source§impl ConfigValidationReport
impl ConfigValidationReport
Sourcepub fn failure_count(&self) -> usize
pub fn failure_count(&self) -> usize
失败数量
Sourcepub fn pass_count(&self) -> usize
pub fn pass_count(&self) -> usize
通过数量
Sourcepub fn failures(&self) -> Vec<&ValidationResult>
pub fn failures(&self) -> Vec<&ValidationResult>
失败字段列表
Sourcepub fn passed_fields(&self) -> Vec<&ValidationResult>
pub fn passed_fields(&self) -> Vec<&ValidationResult>
通过字段列表
Sourcepub fn to_summary(&self) -> String
pub fn to_summary(&self) -> String
汇总字符串
Sourcepub fn merge(&self, other: &ConfigValidationReport) -> ConfigValidationReport
pub fn merge(&self, other: &ConfigValidationReport) -> ConfigValidationReport
合并另一个报告,返回新报告
Sourcepub fn filter_by_field(&self, field: &str) -> Vec<&ValidationResult>
pub fn filter_by_field(&self, field: &str) -> Vec<&ValidationResult>
按字段名过滤结果
Sourcepub fn all_results(&self) -> &[ValidationResult]
pub fn all_results(&self) -> &[ValidationResult]
返回所有校验结果的引用
Trait Implementations§
Source§impl Clone for ConfigValidationReport
impl Clone for ConfigValidationReport
Source§fn clone(&self) -> ConfigValidationReport
fn clone(&self) -> ConfigValidationReport
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 ConfigValidationReport
impl Debug for ConfigValidationReport
impl Eq for ConfigValidationReport
Source§impl PartialEq for ConfigValidationReport
impl PartialEq for ConfigValidationReport
impl StructuralPartialEq for ConfigValidationReport
Auto Trait Implementations§
impl Freeze for ConfigValidationReport
impl RefUnwindSafe for ConfigValidationReport
impl Send for ConfigValidationReport
impl Sync for ConfigValidationReport
impl Unpin for ConfigValidationReport
impl UnsafeUnpin for ConfigValidationReport
impl UnwindSafe for ConfigValidationReport
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