Skip to main content

D1Model

Trait D1Model 

Source
pub trait D1Model: Sized + for<'de> Deserialize<'de> {
    const TABLE: &'static str;
    const COLUMNS: &'static [&'static str];

    // Required method
    fn values(&self) -> Vec<Value>;
}

Required Associated Constants§

Source

const TABLE: &'static str

Source

const COLUMNS: &'static [&'static str]

Required Methods§

Source

fn values(&self) -> Vec<Value>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§