Enum reindeer::DeletionBehaviour
source · pub enum DeletionBehaviour {
Error,
BreakLink,
Cascade,
}
Expand description
Enum for use in relation description, defining how the database must behave if one end of the relation is removed.
Variants§
Error
Trying to remove the current entity while a related one still exists will result in an error
BreakLink
Related entities are left untouched, but the link between the two entities is removed
Cascade
Related entities are also removed if the current one is removed
Trait Implementations§
source§impl Clone for DeletionBehaviour
impl Clone for DeletionBehaviour
source§fn clone(&self) -> DeletionBehaviour
fn clone(&self) -> DeletionBehaviour
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DeletionBehaviour
impl Debug for DeletionBehaviour
source§impl<'de> Deserialize<'de> for DeletionBehaviour
impl<'de> Deserialize<'de> for DeletionBehaviour
source§fn 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
source§impl PartialEq<DeletionBehaviour> for DeletionBehaviour
impl PartialEq<DeletionBehaviour> for DeletionBehaviour
source§fn eq(&self, other: &DeletionBehaviour) -> bool
fn eq(&self, other: &DeletionBehaviour) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.