Skip to main content

SqlxValueIfEnabled

Trait SqlxValueIfEnabled 

Source
pub trait SqlxValueIfEnabled: for<'r> Decode<'r, Postgres> + Type<Postgres> { }
Expand description

Proxy trait for sqlx::Decode that we can switch off if not enabled

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> Value for T
where T: for<'r> Decode<'r, Postgres> + Type<Postgres>,