pub struct Fields<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Fields<'a>
impl<'a> Fields<'a>
pub fn name(&'a self) -> String
pub fn ident(&'a self) -> &'a Ident
pub fn raw_type(&'a self) -> &'a str
pub fn sql_type(&'a self) -> &'a SqlType
pub fn is_primary_key(&'a self) -> bool
pub fn is_unique(&self) -> bool
pub fn on_insert(&'a self) -> &'a Option<PatPath>
pub fn on_update(&'a self) -> &'a Option<PatPath>
pub fn as_pub_static_member(&'a self) -> TokenStream
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Fields<'a>
impl<'a> RefUnwindSafe for Fields<'a>
impl<'a> !Send for Fields<'a>
impl<'a> !Sync for Fields<'a>
impl<'a> Unpin for Fields<'a>
impl<'a> UnwindSafe for Fields<'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