Skip to main content

Statement

Trait Statement 

Source
pub trait Statement: Sealed {
    // Required method
    fn prepare<F: ConnectionFactory>(
        &self,
        client: &mut PostgresClient<F>,
    ) -> impl Future<Output = Result<PreparedQuery, ElefantClientError>>;
}

Required Methods§

Source

fn prepare<F: ConnectionFactory>( &self, client: &mut PostgresClient<F>, ) -> impl Future<Output = Result<PreparedQuery, ElefantClientError>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Statement for String

Source§

impl Statement for str

Implementors§