Skip to main content

Crate sofie_core

Crate sofie_core 

Source

Re-exports§

pub use show::Show;
pub use show::Shown;
pub use sql::Cast;
pub use sql::ColumnReader;
pub use sql::ColumnSpec;
pub use sql::Ordered;
pub use sql::RowReader;
pub use sql::SqlType;
pub use sql::SqlValue;
pub use value::Value;
pub use variants::Variants;

Modules§

case
encoding
listing
The keys a page of a list is answered and asked under, from the database to the browser client.
moves
random
registrations
Run by both sofie check and boot, so the two cannot drift.
show
sql_lexer
Postgres’s lexical rules where they hide text: -- and nested /* */ comments, '' and E'\'' escapes, "quoted" names and $tag$ bodies.
unpoisoned
A panic while a lock was held must not fail every later caller of the lock.
value
variants

Structs§

Clock
One source of time, so a test moves it for handlers, unit of work and worker at once.
ColumnSpec
Date
Storage-level jiff types, without serde; apps take sofie::prelude::Date (feature time). A representation of a civil date in the Gregorian calendar.
DateTime
Storage-level jiff types, without serde; apps take sofie::prelude::Date (feature time). A representation of a civil datetime in the Gregorian calendar.
DisplayZone
Where people see and type instants; stored and JSON instants stay UTC.
FieldError
FieldRules
Fnv1a64
FNV-1a 64: the same in every process and release, which stored migration checksums and flag rollout buckets rely on; not collision-resistant.
Instant
Stored and written in UTC whatever offset it was read with.
ParseUuidError
RandomnessUnavailable
RowReader
TestClock
Timestamp
An instant in time represented as the number of nanoseconds since the Unix epoch.
Uuid
RFC 9562; ordered by bytes so version 7 ids sort in creation order.
Variable

Enums§

Constraint
A bound counts characters for text and compares numbers; the derive picks by Measured::TEXT.
Error
SqlType
SqlValue

Constants§

BASE_URL

Traits§

Cast
ColumnReader
One row’s columns in order, each read once straight into its target, text borrowed meanwhile.
Measured
Ordered

Functions§

base_url
An empty value counts as unset, as .env.example lists keys empty.
base_url_missing
environment_variable
None when unset; a value that is not Unicode is refused, naming the variable.
is_field_name
is_local_database
What drops or fills a database unasked runs only on one on this machine. Read as tokio-postgres reads the url, so the guard and the driver agree on where it connects.
misleads_display
They reorder or hide text where it is shown (CVE-2021-42574). Unicode 16.0’s format (Cf) list, written out to need no dependency, keeps ZWJ and ZWNJ, which Persian and Devanagari spell with.
plural
How both sofie-http and sofie gen name a resource’s path and list handler.
wall_clock_instant
A time a forward shift skips goes where the shift ends, a repeated one to its first occurrence.

Type Aliases§

Result