#[non_exhaustive]pub struct CommandFields {
pub key: usize,
pub command: usize,
}Expand description
Where the key and the command sit in a COMMAND-mode field schema
[docs/spec/04-notifications.md §3.2].
Both positions are 1-based, matching the numbering
ItemUpdate uses everywhere.
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.key: usizePosition of the field that identifies the row.
command: usizePosition of the field that says what happened to the row — ADD,
UPDATE or DELETE.
Trait Implementations§
Source§impl Clone for CommandFields
impl Clone for CommandFields
Source§fn clone(&self) -> CommandFields
fn clone(&self) -> CommandFields
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CommandFields
Source§impl Debug for CommandFields
impl Debug for CommandFields
impl Eq for CommandFields
Source§impl Hash for CommandFields
impl Hash for CommandFields
Source§impl Ord for CommandFields
impl Ord for CommandFields
Source§fn cmp(&self, other: &CommandFields) -> Ordering
fn cmp(&self, other: &CommandFields) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CommandFields
impl PartialEq for CommandFields
Source§impl PartialOrd for CommandFields
impl PartialOrd for CommandFields
impl StructuralPartialEq for CommandFields
Auto Trait Implementations§
impl Freeze for CommandFields
impl RefUnwindSafe for CommandFields
impl Send for CommandFields
impl Sync for CommandFields
impl Unpin for CommandFields
impl UnsafeUnpin for CommandFields
impl UnwindSafe for CommandFields
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more