Trust depreciation recapture

Who pays the depreciation recapture?   The trust or the beneficiary?  
is it dependent on who got the depreciation deduction?