It seems like at the moment, this crate doesn't use the xdg-desktop-portal API for trashing files. Sadly, this means that it doesn't behave correctly in sandboxed environments like e.g. Flatpak packages.
It would be great if that could be changed, and I think it would benefit the code in general, as that would be the preferred way to ensure that any usual Linux cases are handled properly. More on this can be read here, where the reasons are explained.