You're not actually creating or running an iced application anywhere in this code, you're just looping infinitely. Also, I don't think Rectangle is a thing you can draw directly - it's just a data type, like Point.
I don't know enough about iced to tell you how to actually draw a rectangle, but I would recommend reading the docs and looking at the examples to understand the structure of an iced application.
Edit: It looks like the way you do primitive shape drawing in iced is via the Canvas widget and the Program trait.
What is impl Sandbox for Hello {? Like what does Sandbox mean, is this some random name iced uses, or is this specific to a Rust name? Can it be named anything?
It’s the name of the trait that is being implemented here. (You can also see it being imported on the top in the use declaration.) Take a look around on the page with the hello-world example that I linked to, it’s actually the documentation of that very trait “iced::Sandbox”
If you want to learn more about the basics of Rust like this, I can recommend the book for a beginning. It also has a chapter on traits.
Also, if reading the docs for a crate, reading the docs for standard library, the Rust book, etc, If in your browser you type "S" to search and type the word you want to understand, you will be presented links to docs with that word in it.