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>
Represent None as “NULL” and Some(Value) as value.
impl AsNullable for Option<Value>
Represent None as “NULL” and Some(Value) as value.