# This file was auto-generated by Fern from our API Definition.

import enum
import typing

T_Result = typing.TypeVar("T_Result")


class TracesSubjectType(str, enum.Enum):
    """
    Array of subject types to filter by
    """

    USER = "user"
    VIRTUALACCOUNT = "virtualaccount"

    def visit(self, user: typing.Callable[[], T_Result], virtualaccount: typing.Callable[[], T_Result]) -> T_Result:
        if self is TracesSubjectType.USER:
            return user()
        if self is TracesSubjectType.VIRTUALACCOUNT:
            return virtualaccount()
