pub fn find_related_field_for_info(&self, info: &RelationInfo, exclude: &str) -> Option<&RelationField> {
        self.find_model(&info.to)
            .expect("The model referred to by a RelationInfo should always exist.")
            .relation_fields()
            .find(|f| {
                f.relation_info.name == info.name
                    && (f.relation_info.to != info.to ||
          // This is to differentiate the opposite field from self in the self relation case.
          f.name != exclude)
            })
    }
/// Finds a relation field related to a relation info
Finds a relation field related to a relation info
Finds a relation field related to a relation info
pub fn find_related_field_for_info(&self, info: &RelationInfo, exclude: &str) -> Option<&RelationField> {
        self.find_model(&info.to)
            .expect("The model referred to by a RelationInfo should always exist.")
            .relation_fields()
            .find(|f| {
                f.relation_info.name == info.name
                    && (f.relation_info.to != info.to ||
          // This is to differentiate the opposite field from self in the self relation case.
          f.name != exclude)
            })
    }
pub fn find_related_field_for_info ( & self , info : & RelationInfo , exclude : & str ) -> Option < & RelationField > { self . find_model ( & info . to ) . expect ( " " ) . relation_fields ( ) . find ( | f | { f . relation_info . name == info . name && ( f . relation_info . to != info . to || // This is to differentiate the opposite field from self in the self relation case. f . name != exclude ) } ) }
Finds a relation field related to a relation info
Finds a relation field related to a relation info
&self
info
&RelationInfo
exclude
&str
&self
info
&RelationInfo
exclude
&str