@@ -53,47 +53,47 @@ pub(crate) fn parse_field_as_filter(key: &str) -> (String, FilterOp) {
5353
5454/// An `ObjectType` with `Hash` and `Eq` derived from the name.
5555#[ derive( Clone , Debug ) ]
56- pub ( crate ) struct ObjectCondition < ' a > ( & ' a s:: ObjectType ) ;
56+ pub ( crate ) struct ObjectType < ' a > ( & ' a s:: ObjectType ) ;
5757
58- impl < ' a > Ord for ObjectCondition < ' a > {
58+ impl < ' a > Ord for ObjectType < ' a > {
5959 fn cmp ( & self , other : & Self ) -> std:: cmp:: Ordering {
6060 self . 0 . name . cmp ( & other. 0 . name )
6161 }
6262}
6363
64- impl < ' a > PartialOrd for ObjectCondition < ' a > {
64+ impl < ' a > PartialOrd for ObjectType < ' a > {
6565 fn partial_cmp ( & self , other : & Self ) -> Option < std:: cmp:: Ordering > {
6666 Some ( self . 0 . name . cmp ( & other. 0 . name ) )
6767 }
6868}
6969
70- impl std:: hash:: Hash for ObjectCondition < ' _ > {
70+ impl std:: hash:: Hash for ObjectType < ' _ > {
7171 fn hash < H : std:: hash:: Hasher > ( & self , state : & mut H ) {
7272 self . 0 . name . hash ( state)
7373 }
7474}
7575
76- impl PartialEq for ObjectCondition < ' _ > {
76+ impl PartialEq for ObjectType < ' _ > {
7777 fn eq ( & self , other : & Self ) -> bool {
7878 self . 0 . name . eq ( & other. 0 . name )
7979 }
8080}
8181
82- impl Eq for ObjectCondition < ' _ > { }
82+ impl Eq for ObjectType < ' _ > { }
8383
84- impl < ' a > From < & ' a s:: ObjectType > for ObjectCondition < ' a > {
84+ impl < ' a > From < & ' a s:: ObjectType > for ObjectType < ' a > {
8585 fn from ( object : & ' a s:: ObjectType ) -> Self {
86- ObjectCondition ( object)
86+ ObjectType ( object)
8787 }
8888}
8989
90- impl < ' a > From < ObjectCondition < ' a > > for ObjectOrInterface < ' a > {
91- fn from ( cond : ObjectCondition < ' a > ) -> Self {
90+ impl < ' a > From < ObjectType < ' a > > for ObjectOrInterface < ' a > {
91+ fn from ( cond : ObjectType < ' a > ) -> Self {
9292 ObjectOrInterface :: Object ( cond. 0 )
9393 }
9494}
9595
96- impl ObjectCondition < ' _ > {
96+ impl ObjectType < ' _ > {
9797 pub fn name ( & self ) -> & str {
9898 & self . 0 . name
9999 }
0 commit comments