pub struct Mapping {
pub property: String,
pub column: String,
pub type_handler: Option<String>,
}Expand description
单字段映射规则(property <-> column)
Fields§
§property: String目标属性名(Rust 字段名)
column: String数据库列名
type_handler: Option<String>可选 TypeHandler 名称(用于自定义类型转换)
Implementations§
Trait Implementations§
impl Eq for Mapping
impl StructuralPartialEq for Mapping
Auto Trait Implementations§
impl Freeze for Mapping
impl RefUnwindSafe for Mapping
impl Send for Mapping
impl Sync for Mapping
impl Unpin for Mapping
impl UnsafeUnpin for Mapping
impl UnwindSafe for Mapping
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