Trait SqlxComponent

Source
pub trait SqlxComponent<R: Row>:
    PrimaryKey
    + Component
    + for<'r> FromRow<'r, R>
    + Unpin { }
Expand description

Rows in the database represent a spesifc Component

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<C, R> SqlxComponent<R> for C
where C: PrimaryKey + Component + for<'r> FromRow<'r, R> + Unpin, R: Row,