#[non_exhaustive]pub enum DiagnosticCode {
Show 22 variants
UnsupportedArrowType,
LossyConversionRequiresPolicy,
PolicyApplied,
IdentifierInvalid,
IdentifierTooLong,
DecimalOutOfRange,
IntegerOutOfRange,
TimestampOutOfRange,
TimezoneUnsupported,
SchemaMismatch,
BackendUnavailable,
ProfileDependentConversion,
ObservedDataRequired,
ValueConversionUnsupported,
ValueTypeMismatch,
NullInNonNullableColumn,
NonFiniteFloat,
ValueTooLong,
RowIndexOutOfBounds,
DirectEncodingInvalidPayload,
DirectEncodingUnsupportedMapping,
DirectEncodingUnsupportedBatch,
}Expand description
Machine-readable diagnostic code.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnsupportedArrowType
An Arrow type is not supported by the selected operation.
LossyConversionRequiresPolicy
A conversion may lose information and requires explicit policy.
PolicyApplied
An explicit conversion policy was applied.
IdentifierInvalid
A SQL Server identifier is invalid.
IdentifierTooLong
A SQL Server identifier exceeds the supported length.
DecimalOutOfRange
A decimal value, precision, or scale is outside the supported range.
IntegerOutOfRange
An integer value is outside the supported range.
TimestampOutOfRange
A timestamp value is outside the supported range.
TimezoneUnsupported
A timestamp timezone cannot be mapped to a deterministic SQL Server value.
This is used for invalid timezone names, invalid fixed offset strings, and resolved offsets SQL Server cannot represent.
SchemaMismatch
A runtime batch schema does not match the planned schema.
A requested write backend is unavailable.
ProfileDependentConversion
A mapping depends on explicit user policy.
ObservedDataRequired
A selected policy needs observed values or statistics, not just schema.
ValueConversionUnsupported
A planned value conversion is not supported by the current converter.
ValueTypeMismatch
A runtime value or array type does not match the planned conversion.
NullInNonNullableColumn
A runtime null value was found for a non-nullable target column.
NonFiniteFloat
A floating-point value is not finite.
ValueTooLong
A runtime value exceeds the planned target type length.
RowIndexOutOfBounds
A requested row index is outside the runtime batch.
DirectEncodingInvalidPayload
Direct raw TDS encoding produced or received invalid payload state.
DirectEncodingUnsupportedMapping
A planned mapping is not supported by the direct raw TDS encoder.
DirectEncodingUnsupportedBatch
Runtime batch shape is not supported by the current direct raw TDS encoder.
Trait Implementations§
Source§impl Clone for DiagnosticCode
impl Clone for DiagnosticCode
Source§fn clone(&self) -> DiagnosticCode
fn clone(&self) -> DiagnosticCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DiagnosticCode
impl Debug for DiagnosticCode
Source§impl Hash for DiagnosticCode
impl Hash for DiagnosticCode
Source§impl PartialEq for DiagnosticCode
impl PartialEq for DiagnosticCode
Source§fn eq(&self, other: &DiagnosticCode) -> bool
fn eq(&self, other: &DiagnosticCode) -> bool
self and other values to be equal, and is used by ==.