Deserializer
Bases: Protocol[K_contra]
Protocol that represents the deserializer. It is meant to be placed into a Renderer, and is responsible for deserializing the document into embeds and views.
deserialize(source, key, callables, events)
This method is used to deserialize a document into an embed and a view.
Parameters:
-
source
(str
) –document that is deserialized
-
key
(K_contra
) –key that is used to deserialize the document
-
callables
(Dict[str, Callback]
) –callables that are used to deserialize the document
-
events
(EventCallbacks
) –hooks that are called on events
Returns (ReturnType): All possible deserialized types