Name Card Models
name_card
Classes:
-
Namecard–Represents a namecard summary.
-
NamecardDetail–Represents detailed information about a namecard.
Namecard
pydantic-model
Represents a namecard summary.
Attributes:
-
id(int) –The namecard's unique ID.
-
name(str) –The namecard's name.
-
type(str) –The type or category of the namecard.
-
rarity(int) –The rarity rank of the namecard.
-
icon(str) –The icon URL for the namecard.
-
route(str) –The route identifier for the namecard.
Fields:
Validators:
-
_convert_icon_url→icon
NamecardDetail
pydantic-model
Represents detailed information about a namecard.
Attributes:
-
id(int) –The namecard's unique ID.
-
name(str) –The namecard's name.
-
rarity(int) –The rarity rank of the namecard.
-
icon(str) –The icon URL for the namecard.
-
route(str) –The route identifier for the namecard.
-
description(str) –The general description of the namecard.
-
description_special(str) –A special or alternative description (optional).
-
source(str | None) –How the namecard is obtained (optional).
Fields:
-
id(int) -
name(str) -
rarity(int) -
icon(str) -
route(str) -
description(str) -
description_special(str) -
source(str | None)
Validators:
-
_convert_icon_url→icon