pub struct FromDoraReport {
pub yaml: String,
pub notes: Vec<MigrationNote>,
pub written_to: Option<PathBuf>,
}Expand description
The result of astrs migrate from-dora.
Fields§
§yaml: StringThe migrated manifest, rendered as YAML with TODO(astrs migrate)
comments (see astrs_migrate::MigrationResult::yaml).
notes: Vec<MigrationNote>Every observation made during the mapping.
written_to: Option<PathBuf>The file it was written to, if FromDoraArgs::output was set.
Implementations§
Source§impl FromDoraReport
impl FromDoraReport
Sourcepub fn exit_code(&self) -> i32
pub fn exit_code(&self) -> i32
2 if any note is astrs_migrate::NoteSeverity::NeedsAttention
(the migrated manifest almost certainly needs a human before it
runs), 0 otherwise — mirroring validate’s “clean vs. needs a
look” convention, without reusing its exact 0/1/2 scale (a
migration note is never merely a warning: every
NeedsAttention note names something this importer could not
automatically translate at all).
Trait Implementations§
Source§impl Clone for FromDoraReport
impl Clone for FromDoraReport
Source§impl Debug for FromDoraReport
impl Debug for FromDoraReport
Auto Trait Implementations§
impl Freeze for FromDoraReport
impl RefUnwindSafe for FromDoraReport
impl Send for FromDoraReport
impl Sync for FromDoraReport
impl Unpin for FromDoraReport
impl UnsafeUnpin for FromDoraReport
impl UnwindSafe for FromDoraReport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more