pub struct InsertMeta {
pub table: TableMeta,
pub returns: Ident,
pub name: Option<String>,
}
Expand description
Metadata used for IntoArguments, TableMeta, and (subset of) Model This structs are constructed from the *Attribute structs in crate::attr.
Fields§
§table: TableMeta
§returns: Ident
§name: Option<String>
Only gets set if the table attribute was set
Implementations§
Source§impl InsertMeta
impl InsertMeta
pub fn from_derive(ast: &DeriveInput) -> Self
Methods from Deref<Target = TableMeta>§
pub fn all_fields(&self) -> impl Iterator<Item = &Ident> + '_
pub fn database_columns(&self) -> impl Iterator<Item = &ColumnMeta> + '_
pub fn many_to_one_joins(&self) -> impl Iterator<Item = &ColumnMeta> + '_
Trait Implementations§
Source§impl Clone for InsertMeta
impl Clone for InsertMeta
Source§fn clone(&self) -> InsertMeta
fn clone(&self) -> InsertMeta
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InsertMeta
impl Debug for InsertMeta
Auto Trait Implementations§
impl Freeze for InsertMeta
impl RefUnwindSafe for InsertMeta
impl Send for InsertMeta
impl Sync for InsertMeta
impl Unpin for InsertMeta
impl UnwindSafe for InsertMeta
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