async fn types(&self, ctx: &Context<'_>) -> Vec<__Type<'a>> {
        let mut types: Vec<_> = self
            .registry
            .types
            .values()
            .filter_map(|ty| {
                if ty.is_visible(ctx) {
                    Some((ty.name(), __Type::new_simple(self.registry, ty)))
                } else {
                    None
                }
            })
            .collect();
        types.sort_by(|a, b| a.0.cmp(b.0));
        types.into_iter().map(|(_, ty)| ty).collect()
    }
/// A list of all types supported by this server.
A list of all types supported by this server.
A list of all types supported by this server .
async fn types(&self, ctx: &Context<'_>) -> Vec<__Type<'a>> {
        let mut types: Vec<_> = self
            .registry
            .types
            .values()
            .filter_map(|ty| {
                if ty.is_visible(ctx) {
                    Some((ty.name(), __Type::new_simple(self.registry, ty)))
                } else {
                    None
                }
            })
            .collect();
        types.sort_by(|a, b| a.0.cmp(b.0));
        types.into_iter().map(|(_, ty)| ty).collect()
    }
async fn types ( & self , ctx : & Context < ' _ > ) -> Vec < __Type < ' a > > { let mut types : Vec < _ > = self . registry . types . values ( ) . filter_map ( | ty | { if ty . is_visible ( ctx ) { Some ( ( ty . name ( ) , __Type :: new_simple ( self . registry , ty ) ) ) } else { None } } ) . collect ( ) ; types . sort_by ( | a , b | a . 0 . cmp ( b . 0 ) ) ; types . into_iter ( ) . map ( | ( _ , ty ) | ty ) . collect ( ) }
A list of all types supported by this server.
A list of all types supported by this server .
&self
ctx
&Context<'_>
&self
ctx
&Context<'_>