MCPcopy Create free account
hub / github.com/hashintel/hash / schema

Method schema

libs/@local/graph/store/src/entity/query.rs:972–987  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

970#[cfg(feature = "utoipa")]
971impl ToSchema<'_> for EntityQuerySortingRecord<'_> {
972 fn schema() -> (&'static str, RefOr<Schema>) {
973 (
974 "EntityQuerySortingRecord",
975 Schema::Object(
976 schema::ObjectBuilder::new()
977 .property("path", Ref::from_schema_name("EntityQuerySortingPath"))
978 .required("path")
979 .property("ordering", Ref::from_schema_name("Ordering"))
980 .required("ordering")
981 .property("nulls", Ref::from_schema_name("NullOrdering"))
982 .required("nulls")
983 .build(),
984 )
985 .into(),
986 )
987 }
988}
989
990impl EntityQuerySortingRecord<'_> {

Callers

nothing calls this directly

Calls 3

requiredMethod · 0.80
defaultFunction · 0.50
buildMethod · 0.45

Tested by

no test coverage detected