pub struct DynamicEntity { /* private fields */ }Implementations§
Source§impl DynamicEntity
impl DynamicEntity
pub fn new(descriptor: TableDescriptor) -> Self
pub fn descriptor(&self) -> &TableDescriptor
pub fn alias(self, alias: impl Into<String>) -> Self
pub fn column(&self, name: &str) -> Result<DynamicColumn, BuilderError>
Sourcepub fn reference(
&self,
column: &str,
key: TypedValue,
) -> Result<DynamicReference, RecordError>
pub fn reference( &self, column: &str, key: TypedValue, ) -> Result<DynamicReference, RecordError>
Build a key-only reference after proving that column is a
one-column PRIMARY KEY or UNIQUE NOT NULL key in this descriptor.
pub fn relation(&self) -> Relation
pub fn query(&self) -> QueryBuilder
pub fn insert(&self) -> InsertBuilder
pub fn update(&self) -> UpdateBuilder
pub fn delete(&self) -> DeleteBuilder
Trait Implementations§
Source§impl Clone for DynamicEntity
impl Clone for DynamicEntity
Source§fn clone(&self) -> DynamicEntity
fn clone(&self) -> DynamicEntity
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 moreSource§impl Debug for DynamicEntity
impl Debug for DynamicEntity
impl Eq for DynamicEntity
Source§impl PartialEq for DynamicEntity
impl PartialEq for DynamicEntity
impl StructuralPartialEq for DynamicEntity
Auto Trait Implementations§
impl Freeze for DynamicEntity
impl RefUnwindSafe for DynamicEntity
impl Send for DynamicEntity
impl Sync for DynamicEntity
impl Unpin for DynamicEntity
impl UnsafeUnpin for DynamicEntity
impl UnwindSafe for DynamicEntity
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