Crate syntax

Crate syntax 

Source
Expand description

This library provide functions to parse JSON-LD contexts and print JSON-LD documents.

Modules§

container
context
object
parse
print

Structs§

CompactIri
CompactIriBuf
ContextDocument
Context document.
InvalidCompactIri
InvalidDirection
InvalidLangTag
KeywordType
LangTag
Any language tag (normal, private use or grandfathered).
LangTagBuf
Owned LangTag.
LenientLangTag
Language tag that may not be well-formed.
LenientLangTagBuf
Owned language tag that may not be well-formed.
NotAKeyword
Number
Lexical JSON number.
Object
Object.
Unexpected
Unordered
Wrapper to view a value without considering the order of the objects entries.

Enums§

Container
ContainerKind
Context
JSON-LD Context.
ContextEntry
Context.
Direction
Internationalized string direction.
ErrorCode
Error code.
Expandable
ExpandableRef
Keyword
JSON-LD keywords.
Kind
Value kind.
Nullable
Value that can be null.
Value
JSON Value.

Traits§

BorrowUnordered
Compare
JSON-LD comparison.
IntoJson
IntoJsonWithContext
Parse
Print
Print methods.
TryFromJson
UnorderedEq
UnorderedHash
UnorderedPartialEq

Functions§

from_value
Deserializes the JSON value into an instance of type T.
is_keyword
is_keyword_like
to_value
Serializes the given value into a JSON Value.

Type Aliases§

NumberBuf
Number buffer.
String
String.