pub struct StatementKey {
pub name: String,
pub sql: String,
}Expand description
A unique key for a prepared statement.
Fields§
§name: StringLogical name for the statement (e.g., “find_user_by_id”).
sql: StringSQL query text.
Implementations§
Trait Implementations§
Source§impl Clone for StatementKey
impl Clone for StatementKey
Source§fn clone(&self) -> StatementKey
fn clone(&self) -> StatementKey
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 StatementKey
impl Debug for StatementKey
Source§impl Hash for StatementKey
impl Hash for StatementKey
Source§impl PartialEq for StatementKey
impl PartialEq for StatementKey
impl Eq for StatementKey
impl StructuralPartialEq for StatementKey
Auto Trait Implementations§
impl Freeze for StatementKey
impl RefUnwindSafe for StatementKey
impl Send for StatementKey
impl Sync for StatementKey
impl Unpin for StatementKey
impl UnwindSafe for StatementKey
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