pub struct FieldDef<'a> {
pub struct_field: ParsedField<'a>,
pub table_column: TableColumnDef<'a>,
}Fields§
§struct_field: ParsedField<'a>§table_column: TableColumnDef<'a>Implementations§
Source§impl FieldDef<'_>
impl FieldDef<'_>
pub fn parse( field: &Field, is_enum_variant: bool, unnamed_idx: Option<usize>, external_column_name: Option<String>, ) -> FieldDef<'_>
pub fn is_optional(&self) -> bool
pub fn is_required(&self) -> bool
pub fn is_location_expr(&self) -> bool
pub fn origin_column_name(&self) -> &Cow<'_, str>
pub fn column_name(&self, escaper: &dyn KeywordsEscaper) -> Cow<'_, str>
pub fn column_name_upsert(&self, escaper: &dyn KeywordsEscaper) -> String
Trait Implementations§
impl<'a> StructuralPartialEq for FieldDef<'a>
Auto Trait Implementations§
impl<'a> Freeze for FieldDef<'a>
impl<'a> RefUnwindSafe for FieldDef<'a>
impl<'a> !Send for FieldDef<'a>
impl<'a> !Sync for FieldDef<'a>
impl<'a> Unpin for FieldDef<'a>
impl<'a> UnwindSafe for FieldDef<'a>
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