Bazaar.Schemas.Common.Types.Unit (Bazaar v0.3.0)

Copy Markdown View Source

Unit

A reusable unit descriptor for quantities and measures. Its unit-descriptor machine identity is (unit, effective scale), where effective scale is the provided scale or 0; display_text is excluded.

Generated from: unit.json

Summary

Functions

Creates a changeset for validating and casting params.

Returns the description for a field, if available.

Creates a new changeset from params.

Functions

changeset(struct \\ %__MODULE__{}, params)

Creates a changeset for validating and casting params.

field_description(field)

Returns the description for a field, if available.

new(params \\ %{})

Creates a new changeset from params.