def clone(self, name: str) -> Segment:
        """
        Create a standalone full clone of a Segment

        The new segment will include all rules and metadata from the original
        segment, but will have its own history.
        """
        cloned: Segment = Segment.objects.create(
            name=name,
            uuid=uuid.uuid4(),
            description=self.segment.description,
            change_request=self.segment.change_request,
            project=self.segment.project,
            feature=self.segment.feature,
            version_of=None,
        )

        self._clone_segment_rules(cloned_segment=cloned)
        self._clone_segment_metadata(cloned_segment=cloned)
        cloned.refresh_from_db()
        return cloned

        Create a standalone full clone of a Segment

        The new segment will include all rules and metadata from the original
        segment, but will have its own history.
        
api/segments/services.py