Enum json_ld::object::value::Value [−][src]
pub enum Value<T: Id = IriBuf> {
Literal(Literal, Option<T>),
LangString(LangString),
Json(JsonValue),
}
Expand description
Value object.
Either a typed literal value, or an internationalized language string.
Variants
A typed value.
LangString(LangString)
A language tagged string.
Tuple Fields of LangString
0: LangString
Json(JsonValue)
A JSON literal value.
Tuple Fields of Json
0: JsonValue
Implementations
Return the type of the value if any.
This will return Some(Type::Json)
for JSON literal values.
If the value is a language tagged string, return its associated language if any.
Returns None
if the value is not a language tagged string.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Value<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Value<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more