RelationedObject

Trait RelationedObject 

Source
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.

Required Methods§

Provided Methods§

Implementations on Foreign Types§

Source§

impl<T> RelationedObject for Vec<T>

Implementors§