pub struct DiagnosticResult {
pub state: State,
pub native_error: i32,
pub text_length: i16,
}Expand description
Result of [Diagnostic::diagnostic_record].
Fields§
§state: StateA five-character SQLSTATE code (and terminating NULL) for the diagnostic record
rec_number. The first two characters indicate the class; the next three indicate the
subclass. For more information, see [SQLSTATE][1]s.
[1]: https://docs.microsoft.com/sql/odbc/reference/develop-app/sqlstates
native_error: i32Native error code specific to the data source.
text_length: i16The length of the diagnostic message reported by ODBC (excluding the terminating zero).
Trait Implementations§
Source§impl Clone for DiagnosticResult
impl Clone for DiagnosticResult
Source§fn clone(&self) -> DiagnosticResult
fn clone(&self) -> DiagnosticResult
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 DiagnosticResult
impl Debug for DiagnosticResult
impl Copy for DiagnosticResult
Auto Trait Implementations§
impl Freeze for DiagnosticResult
impl RefUnwindSafe for DiagnosticResult
impl Send for DiagnosticResult
impl Sync for DiagnosticResult
impl Unpin for DiagnosticResult
impl UnsafeUnpin for DiagnosticResult
impl UnwindSafe for DiagnosticResult
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