pub struct OkPacket {
pub affected_rows: u64,
pub last_insert_id: u64,
pub status: u16,
pub warnings: u16,
pub info: String,
}Expand description
An OK packet: what the server sends when a statement produced no rows.
Fields§
§affected_rows: u64§last_insert_id: u64The key an auto_increment column generated, or 0 when none did.
This is the whole reason QueryResult::last_insert_id exists: MySQL
reports the key here rather than as a row.
status: u16§warnings: u16§info: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for OkPacket
impl RefUnwindSafe for OkPacket
impl Send for OkPacket
impl Sync for OkPacket
impl Unpin for OkPacket
impl UnsafeUnpin for OkPacket
impl UnwindSafe for OkPacket
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