pub struct SqlStatementContext {
    pub request_id: Option<Bytes>,
    pub caller: Option<Bytes>,
    pub function: Option<Bytes>,
    pub line: Option<u32>,
}Expand description
Struct containing information parsed from the initial comment in a SQL query
Fields§
§request_id: Option<Bytes>example field, should just be part of a HashMap
caller: Option<Bytes>example field, should just be part of a HashMap
function: Option<Bytes>example field, should just be part of a HashMap
line: Option<u32>example field, should just be part of a HashMap
Implementations§
Source§impl SqlStatementContext
 
impl SqlStatementContext
Sourcepub fn request_id(&self) -> Option<Cow<'_, str>>
 
pub fn request_id(&self) -> Option<Cow<'_, str>>
example method, should be replaced by generic key lookup
Sourcepub fn caller(&self) -> Option<Cow<'_, str>>
 
pub fn caller(&self) -> Option<Cow<'_, str>>
example method, should be replaced by generic key lookup
Trait Implementations§
Source§impl Clone for SqlStatementContext
 
impl Clone for SqlStatementContext
Source§fn clone(&self) -> SqlStatementContext
 
fn clone(&self) -> SqlStatementContext
Returns a copy 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 SqlStatementContext
 
impl Debug for SqlStatementContext
Source§impl Default for SqlStatementContext
 
impl Default for SqlStatementContext
Source§fn default() -> SqlStatementContext
 
fn default() -> SqlStatementContext
Returns the “default value” for a type. Read more
Source§impl PartialEq for SqlStatementContext
 
impl PartialEq for SqlStatementContext
impl StructuralPartialEq for SqlStatementContext
Auto Trait Implementations§
impl !Freeze for SqlStatementContext
impl RefUnwindSafe for SqlStatementContext
impl Send for SqlStatementContext
impl Sync for SqlStatementContext
impl Unpin for SqlStatementContext
impl UnwindSafe for SqlStatementContext
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