Lifetime annotations don’t change how long any of the references live. Rather, they describe the relationships of the lifetimes of multiple references to each other without affecting the lifetimes.
Struct Lifetime
This annotation means an instance of ImportantExcerpt can’t outlive the reference it holds in its part field.
static Lifetime
The 'static lifetime is the longest possible lifetime, and it lasts for the entire duration of the running program.
The text of the string is stored directly in the program’s binary, which is always available.
There are two ways to make a variable with a 'static lifetime, and both are stored in the read-only memory of the binary:
Make a constant with the static declaration.
Make a string literal which has type &'static str.