Crate zng_wgt_data

Crate zng_wgt_data 

Source
Expand description

Contextual DATA and validation.

§Crate

This crate is part of the zng project.

§Cargo Features

This crate provides 1 feature flag, not enabled by default.

§"var_type_names"

Compile with var type names for error messages

Structs§

DATA
Data context and validation.
DataNote
Represents an annotation set in a data context.
DataNoteHandle
Handle for a DataNote in a context.
DataNoteLevel
Classifies the kind of information conveyed by a DataNote.
DataNotes
Represents the data notes set in a context.

Statics§

DATA_NOTE_COLORS_VAR
Color pairs for note levels.

Traits§

DataNoteValue
Represents a DataNote value.

Functions§

data
P Data context.
data_error
P Insert a data ERROR note in the context.
data_error_color
P Set the data note ERROR color.
data_info
P Insert a data INFO note in the context.
data_info_color
P Set the data note INFO color.
data_note
P Insert a data note in the context.
data_warn
P Insert a data WARN note in the context.
data_warn_color
P Set the data note WARN color.
extend_data_note_colors
P Extend the data note level colors, the colors extend the parent colors, only entries of the same level are replaced.
get_data_error
P Get all ERROR data notes set on the context.
get_data_error_txt
P Write all ERROR data notes set on the context to a text.
get_data_info
P Get all INFO data notes set on the context.
get_data_info_txt
P Write all INFO data notes set on the context to a text.
get_data_notes
P Get all data notes set on the context.
get_data_notes_top
P Gets all the notes of highest data level set on the context.
get_data_warn
P Get all WARN data notes set on the context.
get_data_warn_txt
P Write all WARN data notes set on the context to a text.
has_data_error
P Gets if any ERROR data notes are set on the context.
has_data_info
P Gets if any INFO data notes are set on the context.
has_data_notes
P Gets if any data notes are set on the context.
has_data_warn
P Gets if any WARN data notes are set on the context.
replace_data_note_colors
P Sets the data note level colors, the parent colors are fully replaced.
with_data_note_color
Node that inserts a data note color in DATA_NOTE_COLORS_VAR.
with_data_notes
Creates a note that samples DataNotes in a context.