pub enum MysqlResponse {
Ok {
affected_rows: u64,
message: String,
},
Error {
code: u16,
message: String,
},
ResultSet {
columns: Vec<String>,
rows: Vec<Vec<String>>,
total_rows: usize,
},
Other,
}Expand description
MySQL response type (simplified)
Variants§
Implementations§
Source§impl MysqlResponse
impl MysqlResponse
pub fn to_summary(&self) -> String
Sourcepub fn to_display(&self) -> String
pub fn to_display(&self) -> String
Formatted display for detail panel
Trait Implementations§
Source§impl Clone for MysqlResponse
impl Clone for MysqlResponse
Source§fn clone(&self) -> MysqlResponse
fn clone(&self) -> MysqlResponse
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 moreAuto Trait Implementations§
impl Freeze for MysqlResponse
impl RefUnwindSafe for MysqlResponse
impl Send for MysqlResponse
impl Sync for MysqlResponse
impl Unpin for MysqlResponse
impl UnsafeUnpin for MysqlResponse
impl UnwindSafe for MysqlResponse
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