is there any code that will rotate a vector3 by an angle?

i have a facing vector3 of (0,0,1) for example

i want to rotate it (-90 +angleNeeded , 0,0);

so that it will rotate the vector3 in a x axis by the degrees i need

Quaternion q = Quaternion.eulerAnles(-90f+angleNeeded,0,0);
Vector3 rotated = q * Vector3.forward;