Skip to main content

HasOr

Trait HasOr 

Source
pub trait HasOr {
    // Required method
    fn or_mut(&mut self) -> &mut Option<Or>;
}
Expand description

A statement that takes a conflict-clause: an INSERT or an UPDATE.

A DELETE does not implement this, which is how “a delete cannot violate a constraint” is said — delete::or_replace does not exist to be misapplied.

Required Methods§

Source

fn or_mut(&mut self) -> &mut Option<Or>

The conflict algorithm to modify.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl HasOr for Option<Or>

Source§

fn or_mut(&mut self) -> &mut Option<Or>

Implementors§