Function pschema_rs::utils::examples::optional_schema
source · pub fn optional_schema() -> ShapeExpand description
This function returns a ShapeComposite representing an optional schema for a human with an optional award received.
Returns:
A Shape object is being returned. Specifically, a ShapeComposite object that contains two TripleConstraint objects and a Cardinality object. The ShapeComposite object has an ID of 1 and the TripleConstraint objects have IDs of 2 and 3 respectively. The first TripleConstraint object specifies that the subject must be an instance of the Human class, while the second TripleConstraint object specifies that the subject may have