pub struct TableRecord {
pub id: String,
pub table: String,
pub references: HashMap<String, String>,
pub key_values: HashMap<String, String>,
pub amount: Option<f64>,
pub date: Option<String>,
pub status: Option<String>,
pub is_anomalous: bool,
pub anomaly_id: Option<String>,
}Expand description
A record from any table with its key and references.
Fields§
§id: StringRecord identifier.
table: StringTable name.
references: HashMap<String, String>Foreign key references to other tables.
key_values: HashMap<String, String>Key field values for comparison.
amount: Option<f64>Numeric amount if applicable.
date: Option<String>Date field if applicable.
status: Option<String>Status field if applicable.
is_anomalous: boolWhether this record is marked as anomalous.
anomaly_id: Option<String>Associated anomaly ID if any.
Trait Implementations§
Source§impl Clone for TableRecord
impl Clone for TableRecord
Source§fn clone(&self) -> TableRecord
fn clone(&self) -> TableRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TableRecord
impl Debug for TableRecord
Source§impl Default for TableRecord
impl Default for TableRecord
Source§fn default() -> TableRecord
fn default() -> TableRecord
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TableRecord
impl RefUnwindSafe for TableRecord
impl Send for TableRecord
impl Sync for TableRecord
impl Unpin for TableRecord
impl UnwindSafe for TableRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.