Struct rbatis::crud::DynTableColumn [−][src]
pub struct DynTableColumn<T: CRUDTable, P: TableColumnProvider> {
pub inner: T,
pub p: PhantomData<P>,
}
Expand description
DynColumn , can custom insert,update column
Fields
inner: T
p: PhantomData<P>
Trait Implementations
format column
return (columns_sql,columns_values_sql,args)
return cast chain column:format_str for example: HashMap<“id”,|arg|“{}::uuid”.to_string()>
return table column value If a macro is used, the method is overridden by the macro
get table name,default is type name for snake name Read more
get table fields string Read more
impl<'de, T, P> Deserialize<'de> for DynTableColumn<T, P> where
T: CRUDTable + DeserializeOwned,
P: TableColumnProvider,
impl<'de, T, P> Deserialize<'de> for DynTableColumn<T, P> where
T: CRUDTable + DeserializeOwned,
P: TableColumnProvider,
fn deserialize<D>(
deserializer: D
) -> Result<Self, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<Self, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more