pub struct MigrationAnalysis {Show 13 fields
pub routes: Vec<RouteInfo>,
pub express_apps: Vec<usize>,
pub middleware_count: usize,
pub has_body_parser: bool,
pub has_auth_middleware: bool,
pub has_error_handler: bool,
pub async_handlers: usize,
pub complexity: ComplexityLevel,
pub risky_patterns: Vec<RiskyPattern>,
pub suggested_recipes: Vec<String>,
pub migration_blockers: Vec<String>,
pub unsupported_apis: Vec<String>,
pub estimated_difficulty: u8,
}Fields§
§routes: Vec<RouteInfo>§express_apps: Vec<usize>§middleware_count: usize§has_body_parser: bool§has_auth_middleware: bool§has_error_handler: bool§async_handlers: usize§complexity: ComplexityLevel§risky_patterns: Vec<RiskyPattern>§suggested_recipes: Vec<String>§migration_blockers: Vec<String>§unsupported_apis: Vec<String>§estimated_difficulty: u8Implementations§
Source§impl MigrationAnalysis
impl MigrationAnalysis
pub fn classify_complexity(&mut self)
pub fn detect_risky_patterns(&mut self)
pub fn suggest_recipes(&mut self)
pub fn unsupported_api(&mut self, api: &str)
pub fn add_blocker(&mut self, blocker: &str)
pub fn statistics(&self) -> AnalysisStats
Trait Implementations§
Source§impl Clone for MigrationAnalysis
impl Clone for MigrationAnalysis
Source§fn clone(&self) -> MigrationAnalysis
fn clone(&self) -> MigrationAnalysis
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 MigrationAnalysis
impl Debug for MigrationAnalysis
Source§impl Default for MigrationAnalysis
impl Default for MigrationAnalysis
Source§fn default() -> MigrationAnalysis
fn default() -> MigrationAnalysis
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MigrationAnalysis
impl RefUnwindSafe for MigrationAnalysis
impl Send for MigrationAnalysis
impl Sync for MigrationAnalysis
impl Unpin for MigrationAnalysis
impl UnsafeUnpin for MigrationAnalysis
impl UnwindSafe for MigrationAnalysis
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
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