The current study discusses the charge anisotropic stellar structures in Rastall theory. For this study, the Karmarkar condition is considered to develop the embedded solutions of compact stars. To complete this analysis, the spherically symmetric spacetime is taken and solve the resulting Rastall field equations by constraining different values of the Rastall parameter, i.e., $\xi=-0.03$, $\xi=-0.06$, and $\xi=-0.09$ into account. Further, we choose a well-known interesting form of $g_{rr}$ metric component as $e^{\lambda(r)}=1+\frac{cr^2\left(1+ar^2\right)^n}{(1+br^2)^2}$. We explore the properties of compact star model like Vela X-1, under the effect of different positive values of $n$, i.e., $1.8\leq n <7$, expect $n\neq 2,4,6$. It is noted that some results are not satisfied for $n\geq6.6$. We show that the parameters $n$ from the $g_{rr}$ metric and Rastall parameter $\xi$ play an important role in determining the thermodynamical behavior and stability of our model. The detailed analysis reinforced by their conforming plots of the outlines of the pressure components, energy density, charged density, and stability features including adiabatic index has been provided. It is important to mention here that our obtained solutions are physically viable and are well stable.