pub enum ConvertWarning {
UnsupportedFeature {
feature: String,
suggestion: Option<String>,
},
LossyConversion {
from_type: String,
to_type: String,
table: Option<String>,
column: Option<String>,
},
SkippedStatement {
reason: String,
statement_preview: String,
},
CopyNotConverted {
table: String,
},
}Expand description
Warning types that can occur during conversion
Variants§
UnsupportedFeature
Feature not supported in target dialect
LossyConversion
Data type conversion may lose precision
SkippedStatement
Statement was skipped
CopyNotConverted
COPY statement needs conversion (PostgreSQL)
Trait Implementations§
Source§impl Clone for ConvertWarning
impl Clone for ConvertWarning
Source§fn clone(&self) -> ConvertWarning
fn clone(&self) -> ConvertWarning
Returns a duplicate of the value. Read more
1.0.0 · 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 ConvertWarning
impl Debug for ConvertWarning
Source§impl Display for ConvertWarning
impl Display for ConvertWarning
Source§impl JsonSchema for ConvertWarning
impl JsonSchema for ConvertWarning
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ConvertWarning
impl PartialEq for ConvertWarning
Source§impl Serialize for ConvertWarning
impl Serialize for ConvertWarning
impl StructuralPartialEq for ConvertWarning
Auto Trait Implementations§
impl Freeze for ConvertWarning
impl RefUnwindSafe for ConvertWarning
impl Send for ConvertWarning
impl Sync for ConvertWarning
impl Unpin for ConvertWarning
impl UnwindSafe for ConvertWarning
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> 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