Struct reql_types::Change
source · [−]#[non_exhaustive]pub struct Change<O, N> {
pub old_val: Option<O>,
pub new_val: Option<N>,
pub result_type: Option<String>,
pub old_offset: Option<usize>,
pub new_offset: Option<usize>,
pub state: Option<String>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.old_val: Option<O>
new_val: Option<N>
result_type: Option<String>
old_offset: Option<usize>
new_offset: Option<usize>
state: Option<String>
Trait Implementations
sourceimpl<'de, O, N> Deserialize<'de> for Change<O, N> where
O: Deserialize<'de>,
N: Deserialize<'de>,
impl<'de, O, N> Deserialize<'de> for Change<O, N> where
O: Deserialize<'de>,
N: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<O: Ord, N: Ord> Ord for Change<O, N>
impl<O: Ord, N: Ord> Ord for Change<O, N>
sourceimpl<O: PartialOrd, N: PartialOrd> PartialOrd<Change<O, N>> for Change<O, N>
impl<O: PartialOrd, N: PartialOrd> PartialOrd<Change<O, N>> for Change<O, N>
sourcefn partial_cmp(&self, other: &Change<O, N>) -> Option<Ordering>
fn partial_cmp(&self, other: &Change<O, N>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<O: Eq, N: Eq> Eq for Change<O, N>
impl<O, N> StructuralEq for Change<O, N>
impl<O, N> StructuralPartialEq for Change<O, N>
Auto Trait Implementations
impl<O, N> RefUnwindSafe for Change<O, N> where
N: RefUnwindSafe,
O: RefUnwindSafe,
impl<O, N> Send for Change<O, N> where
N: Send,
O: Send,
impl<O, N> Sync for Change<O, N> where
N: Sync,
O: Sync,
impl<O, N> Unpin for Change<O, N> where
N: Unpin,
O: Unpin,
impl<O, N> UnwindSafe for Change<O, N> where
N: UnwindSafe,
O: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more