Trait BorrowToSql

Source
pub trait BorrowToSql: Sealed {
    // Required method
    fn borrow_to_sql(&self) -> &dyn ToSql;
}
Expand description

A trait used by clients to abstract over &dyn ToSql and T: ToSql.

This cannot be implemented outside of this crate.

Required Methods§

Source

fn borrow_to_sql(&self) -> &dyn ToSql

Returns a reference to self as a ToSql trait object.

Implementations on Foreign Types§

Source§

impl BorrowToSql for Box<dyn ToSql + Sync + '_>

Source§

fn borrow_to_sql(&self) -> &dyn ToSql

Source§

impl BorrowToSql for Box<dyn ToSql + Sync + Send + '_>

Source§

fn borrow_to_sql(&self) -> &dyn ToSql

Implementors§

Source§

impl BorrowToSql for &(dyn ToSql + Sync)

In async contexts it is sometimes necessary to have the additional Sync requirement on parameters for queries since this enables the resulting Futures to be Send, hence usable in, e.g., tokio::spawn. This instance is provided for those cases.

Source§

impl BorrowToSql for &dyn ToSql

Source§

impl<T> BorrowToSql for T
where T: ToSql,

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy