[][src]Function wikibase::from_json::statement_from_json

pub fn statement_from_json(
    json_claim: &Value
) -> Result<Statement, WikibaseError>

Serializes a Wikidata claim

Takes a json object and returns a result.

Errors

An error is returned when the json can't be interpreted as an object, or the main snak is missing.