Trait odbc_iter::AsNullable
source · pub trait AsNullable {
// Required method
fn as_nullable_as(&self, null: &'static str) -> NullableValue<'_>;
// Provided method
fn as_nullable(&self) -> NullableValue<'_> { ... }
}
Required Methods§
sourcefn as_nullable_as(&self, null: &'static str) -> NullableValue<'_>
fn as_nullable_as(&self, null: &'static str) -> NullableValue<'_>
Convert to NullableValue
that implements Display
representing no value as given string.
Provided Methods§
sourcefn as_nullable(&self) -> NullableValue<'_>
fn as_nullable(&self) -> NullableValue<'_>
Convert to NullableValue
that implements Display
representing no value as “NULL”.
Implementations on Foreign Types§
source§impl AsNullable for Option<Value>
impl AsNullable for Option<Value>
Represent None
as “NULL” and Some(Value)
as value.