Skip to main content

write_with_context

Function write_with_context 

Source
pub fn write_with_context<T: ToJson>(value: &T, context: Value) -> Value
Expand description

Write a vocabulary value as a document under context rather than Ojak’s: the plain ActivityStreams context, say, which is what Mastodon writes its activities under. @context comes first, wherever a map that keeps its keys in order writes them.