Take and Destroy
#
Take and Destroy ResourceFinal function of this section is move_from
which takes resource from account. We'll implement destroy
function which will Rogue collection resource from account and will destroy its contents.
Resource value must be used. So resource, when taken from account, must be either destructured or passed as return value. However keep in mind that even if you pass this value outside and get it in the script, there are limited options of what to do next as script context does not allow you to do anything with struct or resource except passing it somewhere else. Knowing that - design your methods properly and give user an option to do something with returned resource.
The very last signature: