"The Deserted Village" is a pastoral elegy written by Oliver Goldsmith and published in 1770.
The phrases "laboring swain", "sheltered cot" and "mirthful land" are examples of poetic diction or poetic feeling. Poetic diction is the linguistic style used in poems. This is what differentiates poetry from other styles of speech or writing.