[][src]Enum json_ld::syntax::Keyword

pub enum Keyword {
    Base,
    Container,
    Context,
    Direction,
    Graph,
    Id,
    Import,
    Included,
    Index,
    Json,
    Language,
    List,
    Nest,
    None,
    Prefix,
    Propagate,
    Protected,
    Reverse,
    Set,
    Type,
    Value,
    Version,
    Vocab,
}

JSON-LD keywords.

Variants

Base

@base. Used to set the base IRI against which to resolve those relative IRI references which are otherwise interpreted relative to the document.

Container

@container. Used to set the default container type for a term.

Context

@context. Used to define the short-hand names that are used throughout a JSON-LD document.

Direction

@direction. Used to set the base direction of a JSON-LD value, which are not typed values. (e.g. strings, or language-tagged strings).

Graph

@graph. Used to express a graph.

Id

@id. Used to uniquely identify node objects that are being described in the document with IRIs or blank node identifiers.

Import

@import. Used in a context definition to load an external context within which the containing context definition is merged.

Included

@included. Used in a top-level node object to define an included block, for including secondary node objects within another node object.

Index

@index. Used to specify that a container is used to index information and that processing should continue deeper into a JSON data structure.

Json

@json. Used as the @type value of a JSON literal.

Language

@language. Used to specify the language for a particular string value or the default language of a JSON-LD document.

List

@list. Used to express an ordered set of data.

Nest

@nest. Used to define a property of a node object that groups together properties of that node, but is not an edge in the graph.

None

@none. Used as an index value in an index map, id map, language map, type map, or elsewhere where a map is used to index into other values, when the indexed node does not have the feature being indexed.

Prefix

@prefix. With the value true, allows this term to be used to construct a compact IRI when compacting.

Propagate

@propagate. Used in a context definition to change the scope of that context.

By default, it is true, meaning that contexts propagate across node objects (other than for type-scoped contexts, which default to false). Setting this to false causes term definitions created within that context to be removed when entering a new node object.

Protected

@protected. Used to prevent term definitions of a context to be overridden by other contexts.

Reverse

@reverse. Used to express reverse properties.

Set

@set. Used to express an unordered set of data and to ensure that values are always represented as arrays.

Type

@type. Used to set the type of a node or the datatype of a typed value.

Value

@value. Used to specify the data that is associated with a particular property in the graph.

Version

@version. Used in a context definition to set the processing mode.

Vocab

@vocab. Used to expand properties and values in @type with a common prefix IRI.

Methods

impl Keyword[src]

pub fn into_str(self) -> &'static str[src]

Trait Implementations

impl AsJson for Keyword[src]

impl Clone for Keyword[src]

impl Copy for Keyword[src]

impl Debug for Keyword[src]

impl Display for Keyword[src]

impl Eq for Keyword[src]

impl From<Keyword> for &'static str[src]

impl Hash for Keyword[src]

impl Ord for Keyword[src]

impl PartialEq<Keyword> for Keyword[src]

impl PartialOrd<Keyword> for Keyword[src]

impl StructuralEq for Keyword[src]

impl StructuralPartialEq for Keyword[src]

impl<'a> TryFrom<&'a str> for Keyword[src]

type Error = &'a str

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Keyword

impl Send for Keyword

impl Sync for Keyword

impl Unpin for Keyword

impl UnwindSafe for Keyword

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToOwned for T[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.