Trait FromRow

Source
pub trait FromRow {
    // Required method
    fn from_row(row: &Row) -> Result<Self, Error>
       where Self: Sized;
}
Expand description

Veritabanı satırlarını Rust struct’larına dönüştürmek için trait. Bu trait, FromRow derive makrosu tarafından uygulanır.

Required Methods§

Source

fn from_row(row: &Row) -> Result<Self, Error>
where Self: Sized,

Bir veritabanı satırını Rust struct’ına dönüştürür.

§Argümanlar
  • row - Veritabanı satırına referans
§Dönüş Değeri
  • Result<Self, Error> - Dönüştürülmüş struct veya hata

Implementors§