Module common

Source
Expand description

Definitions of common types (Url, Timestamp, JSON types, etc).

Structs§

Duration
A span of time.
OneOrSet
A generic container that stores exactly one or more unique instances of a given type.
OrderedSet
An ordered set backed by a Vec<T>.
SingleStructError
A container implementing the std::error::Error trait.
Timestamp
A parsed Timestamp.
Url
A parsed URL.

Enums§

Context
A reference to a JSON-LD context
OneOrMany
A generic container that stores exactly one or many (0+) values of a given type.
StringOrUrl
A type that represents either an arbitrary string or a URL.
Value
Represents any valid JSON value.

Traits§

KeyComparable
A trait for comparing types only by a certain key.

Type Aliases§

Object
An alias for an ordered map of key-value pairs.