pub struct ClassDataSync {
pub table_name: TableName,
pub sync_action: SyncAction,
pub pk_fields: HashMap<String, Value>,
pub relevant_fields: Option<HashMap<String, Value>>,
}Fields§
§table_name: TableName§sync_action: SyncAction§pk_fields: HashMap<String, Value>column names are not sanitized by default so it is recommended to use the verify_columns method
when using column names in sql expressions
relevant_fields: Option<HashMap<String, Value>>column names are not sanitized by default so it is recommended to use the verify_columns method
when using column names in sql expressions
Implementations§
Source§impl ClassDataSync
impl ClassDataSync
Sourcepub fn verify_columns(&self) -> Result<(), Error>
pub fn verify_columns(&self) -> Result<(), Error>
This funciton should be used to verify columns in case of sql injection
Trait Implementations§
Source§impl Debug for ClassDataSync
impl Debug for ClassDataSync
Source§impl<'de> Deserialize<'de> for ClassDataSync
impl<'de> Deserialize<'de> for ClassDataSync
Source§fn 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 Freeze for ClassDataSync
impl RefUnwindSafe for ClassDataSync
impl Send for ClassDataSync
impl Sync for ClassDataSync
impl Unpin for ClassDataSync
impl UnsafeUnpin for ClassDataSync
impl UnwindSafe for ClassDataSync
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