Struct rorm_declaration::imr::Model
source · pub struct Model {
pub name: String,
pub fields: Vec<Field>,
pub source_defined_at: Option<Source>,
}
Expand description
A single model i.e. database table
Fields
name: String
Name of the table
fields: Vec<Field>
List of columns of the table
source_defined_at: Option<Source>
Optional source reference to enhance error messages
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more