def resource_type(self, rt):
        """
        Set the CoRE Link Format rt attribute of the resource.

        :param rt: the CoRE Link Format rt attribute
        """
        if not isinstance(rt, str):
            rt = str(rt)
        self._attributes["rt"] = rt
Set the CoRE Link Format rt attribute of the resource.

        :param rt: the CoRE Link Format rt attribute