pub struct RelationshipInference { /* private fields */ }Expand description
Relationship inference engine
Implementations§
Source§impl RelationshipInference
impl RelationshipInference
Sourcepub fn infer_relationships(
&mut self,
spec: &OpenApiSpec,
) -> Result<Vec<Relationship>>
pub fn infer_relationships( &mut self, spec: &OpenApiSpec, ) -> Result<Vec<Relationship>>
Infer relationships from an OpenAPI specification
Sourcepub fn get_relationships_for_parent(
&self,
parent_entity: &str,
) -> Vec<&Relationship>
pub fn get_relationships_for_parent( &self, parent_entity: &str, ) -> Vec<&Relationship>
Get relationships for a specific parent entity
Sourcepub fn get_all_relationships(&self) -> &[Relationship]
pub fn get_all_relationships(&self) -> &[Relationship]
Get all relationships
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RelationshipInference
impl RefUnwindSafe for RelationshipInference
impl Send for RelationshipInference
impl Sync for RelationshipInference
impl Unpin for RelationshipInference
impl UnsafeUnpin for RelationshipInference
impl UnwindSafe for RelationshipInference
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more