Skip to content

Making ObType a separate crate #1339

Open
@samuelcolvin

Description

@samuelcolvin

See samuelcolvin/rtoml#59.

We should move ObType to a separate crate so it can be reused by other projects, there's also a chance that it allows one of us, or something else to come along and make it faster.

pub enum ObType {
None,
// numeric types
Int,
IntSubclass,
Bool,
Float,
FloatSubclass,
Decimal,
// string types
Str,
StrSubclass,
Bytes,
Bytearray,
// sequence types
List,
Tuple,
Set,
Frozenset,
// mapping types
Dict,
// datetime types
Datetime,
Date,
Time,
Timedelta,
// types from this package
Url,
MultiHostUrl,
// anything with __pydantic_serializer__, including BaseModel and pydantic dataclasses
PydanticSerializable,
// vanilla dataclasses
Dataclass,
// enum type
Enum,
// generator type
Generator,
// Path
Path,
//Pattern,
Pattern,
// Uuid
Uuid,
// unknown type
Unknown,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions