Skip to main content

dataclass_types

Function dataclass_types 

Source
pub fn dataclass_types(source: &str) -> Vec<LocalType>
Expand description

Dataclasses declared at the top level of a file, as types record can build values of: { $object: "Name"; attrs: { field: type; defaulted?: type } }, which the Python driver turns into an instance of the class.