pub trait RelationedObject {
// Required method
fn find_relationships(&self, type_: RelationshipType) -> Vec<&Relationship>;
// Provided method
fn find_first_relationships(
&self,
_type_: RelationshipType,
) -> Option<&Relationship> { ... }
}Expand description
An utility trait for finding relationships quickly from an object by their RelationshipType.