Skip to main content

ToSqlValue

Trait ToSqlValue 

Source
pub trait ToSqlValue {
    // Required method
    fn to_sql_value(&self) -> DbValue;
}
Expand description

Converts a Rust value into its SQL parameter representation (the write side of the codec).

Required Methods§

Source

fn to_sql_value(&self) -> DbValue

Returns the SQL value bound for this Rust value.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ToSqlValue for AccountId

Source§

impl ToSqlValue for BlockHeader

Source§

impl ToSqlValue for Nullifier

Source§

impl ToSqlValue for String

Source§

impl ToSqlValue for TransactionId

Source§

impl ToSqlValue for Vec<u8>

Source§

impl ToSqlValue for Word

Source§

impl ToSqlValue for bool

Source§

impl ToSqlValue for i64

Source§

impl ToSqlValue for str

Source§

impl<T: ToSqlValue + ?Sized> ToSqlValue for &T

Source§

impl<T: ToSqlValue> ToSqlValue for Option<T>

Implementors§