Overview
minecraft:trust is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Lets the entity remember several players it trusts, like a fox that trusts the players who bred it.
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:trust": {}
}