This is what he meant.
Qualified immunity is a legal principle that protects government officials from lawsuits for damages if they perform discretionary duties and don't violate clearly established constitutional or statutory rights. This doctrine protects state and local officials, including law enforcement and prison officials, from personal liability unless they violate the law.
Am I guessing? No. I just listened to what he said. He said immunity "for doing their job". The part in quotes is a qualifier. Just switch the words around.
First, that does not make any sense.
Police already have so-called "qualified immunity". There is no need to "give" it to them. They presently have it (and have had it for a long time now) by automatic default. It is only denied to them as a result of explicit court rulings in favor of motions filed specifically for the purpose of removing that immunity. (Thus, Trump cannot have been referring to "qualified immunity" - or else his reference to "giv[ing]" it to them was just meaningless rhetorical fluff intended to blow sunshine up the asses of ignorant "back the blue" cop-suckers who don't realize that cops already have such immunity.)
Second, the description of "qualified immunity" as a
"doctrine [that] protects [cops] from personal liability unless they violate the law" is simply wrong - and obviously so. If a cop (or anyone else, for that matter) did not violate the law, then there is properly nothing for which to hold him personally liable. A cop (or anyone else, for that matter) is properly subject to liability if and only if he has, in fact, violated the law. The purpose and effect of "qualified immunity" is to void that liability when such violations occur. There is no point or purpose to granting immunity from the consequences of breaking the law to people who have not broken the law.
The article cited by spudea has a better description of "qualified immunity":
From which (bold emphasis added):
Paul says officers’ and deputies’ biggest concern is losing what is called ‘qualified immunity.’ That law protects state and local officials, including police officers, from personal liability unless they are determined to have violated what the court defines as an individual’s “clearly established statutory or constitutional rights.”
The problem here is that the phrase "clearly established statutory or constitutional rights" does not mean "clearly established" in reference to the law itself (as it is explicitly written in statutes or the Constitution). Instead, it means "clearly established" in the limited context of previous court rulings and already-existing case law (and with reference to the standard of what some generically hypothetical "reasonable person" would know or be aware of - rather than to a standard of, say, what a "law enforcement" officer ought to know). This creates a "catch-22" in which it's so hard to get around "qualified immunity" because there is little or no "clearly established" case law, and there is little or no "clearly established" case law because it's so hard to get around ""qualified immunity".
Thus, if a cop violates your civil rights, but there is no already-"clearly established" case law concerning the violation of those rights by cops, then you're pretty much just shit-out-of-luck when it comes to getting around "qualified immunity" in order to hold the cop liable. This is why it is (relatively) easier to get a cop's qualified immunity removed in cases involving "excessive force" than for many other civil rights violations - before and since the implementation of "qualified immunity" by SCOTUS in the late '60s, there has been plenty of already-"clearly established" case law concerning excessive uses of force by cops.
But for many (most ?) other civil rights violations? Not so much. As an utterly mundane & routine example, consider this case:
See @ 12:35 and on, especially the following: (bold emphasis added)
@ 14:17:
"[...] likewise, qualified immunity was granted on the First Amendment retaliation claim because there was no Supreme Court or 11th Circuit case that was analogous to this one and the facts."
IOW: This cop got away with it because no other cops had previously failed to get away with it.
@ 14:43:
"There was a 2019 Supreme Court that could have saved this lawsuit on the grounds that the cops don't normally arrest people for the obscene sticker statute, and they just did so here because they were retaliating against Webb's protected speech. However, the judge in this case held that that case was too recent to the Webb incident, and that therefore that holding wasn't clearly established under the law, so qualified immunity was granted."
IOW: If you are a "law enforcement" officer, then laws and court rulings don't really count until they've been around long enough. (How long is that? Who the hell knows ...?) But if you are not a "law enforcement" officer, then I have a sneaking suspicion that they start counting as soon as they are made, and you or I would be laughed out of court if we tried such a "but I didn't know about it yet!" defense. ("Ignorance of the law is no excuse", after all! Well, not unless you're a "law enforcement" officer, anyway ...)
@ 15:15:
" ... the lawsuit was not successful and [...] the police officers were granted qualified immunity. However, that doesn't mean that if they did it again that the results would be the same. Just because qualified immunity was granted does not mean that the First Amendment was not violated. It just means that there was not a prior sufficiently similar case before this one occurred. The [plaintiff was] right that there was a successful First Amendment defense to prosecution, but that's not the same thing as a successful lawsuit, because of the judicial activism that is the doctrine of 'qualified immunity'. But if you're in Florida, and you really want an 'I EAT A-S-S' sticker on your truck, you may get a different result now in 2023, since the right to do so may now be clearly established [...] Maybe. Who knows?"
Qualified immunity should be abolished. Full stop.
Cops (and other government officials) should be no more "immune" from the consequences of their violations of civil (or criminal) law than any other random schmuck (like you or me). In fact, if anything, cops should be held to an even higher standard than the rest of us schmucks. As "law enforcement" officers, it is quite literally their job to know and understand what the law is or isn't at any given time. Otherwise, they have no business trying to enforce it. And when they violate the law (civil or criminal) - whether ignorantly or knowingly - they should be held fully and personally accountable for doing so, just like the rest of us.