Definition for resource's encoding.