Skip to main content

ConversionReport

Struct ConversionReport 

Source
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

Source

pub fn new(source_vendor: &str, target_vendor: &str) -> Self

Source

pub fn add_exact(&mut self, category: &str, source: &str, target: &str)

Source

pub fn add_approximate( &mut self, category: &str, source: &str, target: &str, note: &str, )

Source

pub fn add_manual( &mut self, category: &str, source: &str, reason: &str, rec: Option<&str>, )

Source

pub fn add_unknown(&mut self, raw: &str, context: &str)

Source

pub fn warnings_and_errors(&self) -> Vec<&ReportItem>

Только items с severity >= Warn — для краткого вывода

Trait Implementations§

Source§

impl Clone for ConversionReport

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for ConversionReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ConversionReport

Source§

fn default() -> ConversionReport

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ConversionReport

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for ConversionReport

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.