pub struct DatasetConfig {
pub source: String,
pub key_column: String,
}Expand description
Configuration for loading a dataset from an external source.
Specifies which column holds the record’s natural key (e.g. BSN, UUID, or any primary-key column) and what source label to attach.
The adapter uses key_column to extract the natural key from each row,
then derives a stable RecordId via FNV-1a(source:key). This removes
the need for users to maintain sequential integer offsets across datasets.
§Example
use zer_adapters::DatasetConfig;
let cfg = DatasetConfig::new("brp", "bsn");
assert_eq!(cfg.source, "brp");
assert_eq!(cfg.key_column, "bsn");Fields§
§source: StringSource label attached to every record (e.g. "brp", "kvk").
key_column: StringName of the column whose value is the record’s natural key.
Implementations§
Trait Implementations§
Source§impl Clone for DatasetConfig
impl Clone for DatasetConfig
Source§fn clone(&self) -> DatasetConfig
fn clone(&self) -> DatasetConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DatasetConfig
impl RefUnwindSafe for DatasetConfig
impl Send for DatasetConfig
impl Sync for DatasetConfig
impl Unpin for DatasetConfig
impl UnsafeUnpin for DatasetConfig
impl UnwindSafe for DatasetConfig
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