pub struct PurposedSelectQuery { /* private fields */ }Expand description
A low-level select query carrying an explicit, non-empty execution purpose.
Generated request builders construct this type after .purpose(...) unlocks
their terminal methods. Runtime execution APIs accept this wrapper rather
than a bare SelectQuery, so infrastructure callers must also declare
intent explicitly.
Implementations§
Source§impl PurposedSelectQuery
impl PurposedSelectQuery
pub fn new(query: SelectQuery, purpose: impl Into<String>) -> Self
pub fn as_query(&self) -> &SelectQuery
pub fn into_query(self) -> SelectQuery
Trait Implementations§
Source§impl Clone for PurposedSelectQuery
impl Clone for PurposedSelectQuery
Source§fn clone(&self) -> PurposedSelectQuery
fn clone(&self) -> PurposedSelectQuery
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 PurposedSelectQuery
impl RefUnwindSafe for PurposedSelectQuery
impl Send for PurposedSelectQuery
impl Sync for PurposedSelectQuery
impl Unpin for PurposedSelectQuery
impl UnsafeUnpin for PurposedSelectQuery
impl UnwindSafe for PurposedSelectQuery
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