arel 0.3.3

a sql orm base sqlx
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::ValueBytes;
use std::ops::Deref;

impl PartialEq<bytes::Bytes> for ValueBytes {
    fn eq(&self, other: &bytes::Bytes) -> bool {
        match self.deref() {
            Some(v) => v == other,
            None => false,
        }
    }
}
impl PartialEq<Option<bytes::Bytes>> for ValueBytes {
    fn eq(&self, other: &Option<bytes::Bytes>) -> bool {
        self.deref() == other
    }
}