public function generateStruct(Struct $struct): string
    {
        $classNamePostfix = '';
        if ($struct instanceof Response) {
            $classNamePostfix = 'Response';
        }
        if ($struct instanceof Request) {
            $classNamePostfix = 'Request';
        }
        return $this->twig->render('struct.html', [
            'classNamePostfix' => $classNamePostfix,
            'struct' => $struct,
            'namespace' => $this->getNamespace(),
            'full_namespace' => $this->getFullNamespace()
        ]);
    }