Wrapper type for a string whose trustworthiness must be validated by the
developer. An instance of it can only be constructed by using the unsafe
function trusted. This draws the developers attention to the possible
risks and allows easier reviewing of code sections that potentially
introduce SQL-injections.
Turns the given string into a TrustedString instance. As the source is not a
&’static str here, we cannot be sure that the source does not contain any
unverified user input. In order to draw your attention to the risk of
SQL-injections, this function is marked as unsafe. It can be used like
follows: