GitHub

Persistable

API reference for Persistable.

A request succeeding with A and failing with E (the types of its schemas, which need the services R), stored under primary_key(). Subclass Class(success=..., error=...).

Functions

primary_key

primary_key() -> str

The key the request's result is stored under.

Returns str

@abstractmethod
def primary_key(self) -> str:
    """The key the request's result is stored under."""