pub struct ConversionReport {
pub source_vendor: String,
pub target_vendor: String,
pub summary: ReportSummary,
pub items: Vec<ReportItem>,
pub risk: RiskScore,
pub domain_mismatches: Vec<DomainMismatch>,
}Fields§
§source_vendor: String§target_vendor: String§summary: ReportSummary§items: Vec<ReportItem>§risk: RiskScore§domain_mismatches: Vec<DomainMismatch>Сущности чужого домена (L2 в L3-профиле и наоборот), найденные через profile::detect_domain_mismatches. Пусто, если профиль не был указан (см. traits::convert_with_profile) или конфликтов нет.
Implementations§
Source§impl ConversionReport
impl ConversionReport
pub fn new(source_vendor: &str, target_vendor: &str) -> Self
pub fn add_exact(&mut self, category: &str, source: &str, target: &str)
pub fn add_approximate( &mut self, category: &str, source: &str, target: &str, note: &str, )
pub fn add_manual( &mut self, category: &str, source: &str, reason: &str, rec: Option<&str>, )
pub fn add_unknown(&mut self, raw: &str, context: &str)
Sourcepub fn warnings_and_errors(&self) -> Vec<&ReportItem>
pub fn warnings_and_errors(&self) -> Vec<&ReportItem>
Только items с severity >= Warn — для краткого вывода
Trait Implementations§
Source§impl Clone for ConversionReport
impl Clone for ConversionReport
Source§fn clone(&self) -> ConversionReport
fn clone(&self) -> ConversionReport
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 ConversionReport
impl Debug for ConversionReport
Source§impl Default for ConversionReport
impl Default for ConversionReport
Source§fn default() -> ConversionReport
fn default() -> ConversionReport
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConversionReport
impl<'de> Deserialize<'de> for ConversionReport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ConversionReport
impl RefUnwindSafe for ConversionReport
impl Send for ConversionReport
impl Sync for ConversionReport
impl Unpin for ConversionReport
impl UnsafeUnpin for ConversionReport
impl UnwindSafe for ConversionReport
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