SQLPartial

Trait SQLPartial 

Source
pub trait SQLPartial<'a, Value: SQLParam> {
    type Partial: SQLModel<'a, Value> + Default + 'a;

    // Provided method
    fn partial() -> Self::Partial { ... }
}
Expand description

Trait for models that support partial selection of fields

Required Associated Types§

Source

type Partial: SQLModel<'a, Value> + Default + 'a

The type representing a partial model where all fields are optional for selective querying

Provided Methods§

Source

fn partial() -> Self::Partial

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§