pub struct RelationDescriptor {
pub name: String,
pub target_entity: String,
pub local_key: String,
pub foreign_key: String,
pub many: bool,
pub attach: bool,
pub delete_missing: bool,
}Fields§
§name: String§target_entity: String§local_key: String§foreign_key: String§many: bool§attach: bool§delete_missing: boolImplementations§
Source§impl RelationDescriptor
impl RelationDescriptor
pub fn new(name: impl Into<String>, target_entity: impl Into<String>) -> Self
pub fn local_key(self, key: impl Into<String>) -> Self
pub fn foreign_key(self, key: impl Into<String>) -> Self
pub fn many(self) -> Self
pub fn attach(self) -> Self
pub fn detached(self) -> Self
pub fn delete_missing(self) -> Self
pub fn keep_missing(self) -> Self
Trait Implementations§
Source§impl Clone for RelationDescriptor
impl Clone for RelationDescriptor
Source§fn clone(&self) -> RelationDescriptor
fn clone(&self) -> RelationDescriptor
Returns a duplicate 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 RelationDescriptor
impl Debug for RelationDescriptor
Source§impl PartialEq for RelationDescriptor
impl PartialEq for RelationDescriptor
impl Eq for RelationDescriptor
impl StructuralPartialEq for RelationDescriptor
Auto Trait Implementations§
impl Freeze for RelationDescriptor
impl RefUnwindSafe for RelationDescriptor
impl Send for RelationDescriptor
impl Sync for RelationDescriptor
impl Unpin for RelationDescriptor
impl UnsafeUnpin for RelationDescriptor
impl UnwindSafe for RelationDescriptor
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