Enum diesel::serialize::IsNull [−][src]
pub enum IsNull { Yes, No, }
Tiny enum to make the return type of ToSql
more descriptive
Variants
Yes
No data was written, as this type is null
No
The value is not null
This does not necessarily mean that any data was written to the buffer. For example, an empty string has no data to be sent over the wire, but also is not null.
Trait Implementations
impl Debug for IsNull
[src]
impl Debug for IsNull
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for IsNull
[src]
impl Copy for IsNull
impl Clone for IsNull
[src]
impl Clone for IsNull
fn clone(&self) -> IsNull
[src]
fn clone(&self) -> IsNull
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for IsNull
[src]
impl PartialEq for IsNull
fn eq(&self, other: &IsNull) -> bool
[src]
fn eq(&self, other: &IsNull) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for IsNull
[src]
impl Eq for IsNull