#[non_exhaustive]pub enum RelationshipChange {
Rename(String),
OptOut,
}Expand description
What configuration does to one inferred relationship (the
[relationships] section of the config file).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Rename(String)
Generate the relationship under this name instead: its loader becomes
load_<name>. The name must be a snake_case Rust identifier and must
not collide with the table’s other relationships.
OptOut
Generate nothing for the relationship, nor for its other side (the inverse of a belongs-to, or the belongs-to of an inverse).
Trait Implementations§
Source§impl Clone for RelationshipChange
impl Clone for RelationshipChange
Source§impl Debug for RelationshipChange
impl Debug for RelationshipChange
impl Eq for RelationshipChange
Source§impl PartialEq for RelationshipChange
impl PartialEq for RelationshipChange
impl StructuralPartialEq for RelationshipChange
Auto Trait Implementations§
impl Freeze for RelationshipChange
impl RefUnwindSafe for RelationshipChange
impl Send for RelationshipChange
impl Sync for RelationshipChange
impl Unpin for RelationshipChange
impl UnsafeUnpin for RelationshipChange
impl UnwindSafe for RelationshipChange
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