[][src]Module activitystreams::primitives

Types creating the base for most ActivityStreams fields.

These types are not themselves defined by ActivityStreams, but are referenced by the specification.

use activitystreams::primitives::{AnyString, OneOrMany, Unit};

let any_string = AnyString::from_xsd_string("hey");

let one_or_many = OneOrMany::<i32>::from_one(1234);

let cm = Unit::centimeters();

Structs

AnyString

A type representing any kind of string

OneOrMany

A type representing at least one value

RdfLangString

The rdf.langString type extends xs.string, and represents a language tagged string in RDF.

Unit

A type representing units of length

XsdDateTime

The type xsd:dateTime represents a specific date and time in the format CCYY-MM-DDThh:mm:ss.sss, which is a concatenation of the date and time forms, separated by a literal letter "T".

XsdDuration

The type xsd:duration represents a duration of time expressed as a number of years, months, days, hours, minutes, and seconds.

XsdDurationError

The error type produced when an XsdDuration cannot be parsed