Skip to main content

ResolvedField

Struct ResolvedField 

Source
pub struct ResolvedField {
    pub field: &'static Field,
    pub modifier: String,
    pub transform: Transform,
    pub range: Option<RangeSpec>,
    pub ordering: Ordering,
    pub alias: Option<String>,
    pub omit_pct: Option<u8>,
    pub zipf: Option<ZipfSpec>,
}

Fields§

§field: &'static Field§modifier: String§transform: Transform§range: Option<RangeSpec>§ordering: Ordering§alias: Option<String>

Explicit column name from name=field syntax. Overrides display_name().

§omit_pct: Option<u8>

Percentage of rows where this field is omitted (outputs NULL). 0–100.

§zipf: Option<ZipfSpec>

Zipf distribution over the range instead of uniform.

Implementations§

Source§

impl ResolvedField

Source

pub fn column_name(&self) -> String

Column name: explicit alias if set, otherwise auto-derived.

Source

pub fn display_name(&self) -> String

Auto-derived name for CSV/JSON headers.

Source

pub fn domain_key(&self) -> String

Stable domain key for RNG derivation — uses field id, never changes.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.