pub struct EntitySchema {
pub name: String,
pub columns: Vec<Value>,
pub fk_remaps: Vec<Value>,
pub weight: f64,
}Fields§
§name: String§columns: Vec<Value>§fk_remaps: Vec<Value>§weight: f64Relative population size of this entity within the domain, used to
split total_unique identities across entities (build_pipeline_config).
Defaults to 1.0 (every entity gets an equal share) when a schema
doesn’t set it — every schema written before this field existed keeps
behaving exactly as before. Set explicit weights when entities aren’t
realistically equal in population (e.g. aviation: far more
passenger identities than airline ones) — see docs/ or ask
before picking numbers for a domain you don’t know well; a wrong
weight is as misleading as the uniform default, just in the other
direction.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EntitySchema
impl<'de> Deserialize<'de> for EntitySchema
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 EntitySchema
impl RefUnwindSafe for EntitySchema
impl Send for EntitySchema
impl Sync for EntitySchema
impl Unpin for EntitySchema
impl UnsafeUnpin for EntitySchema
impl UnwindSafe for EntitySchema
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more