Module core

Source
Expand description

Core Traits and Types

Macros§

json
Construct a serde_json::Value from a JSON literal.

Structs§

BaseEncoding
Provides utility functions for encoding and decoding between various bases.
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§

Base
A Multibase-supported base. See [multibase::Base] for more information.
Context
A reference to a JSON-LD context
Error
This type represents all possible errors that can occur in the library.
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§

FmtJson
A convenience-trait to format types as JSON strings for display.
FromJson
A convenience-trait for types that can be deserialized from JSON.
KeyComparable
A trait for comparing types only by a certain key.
ToJson
A convenience-trait for types that can be serialized as JSON.

Type Aliases§

Object
An alias for an ordered map of key-value pairs.
Result
Alias for a Result with the error type Error.