pub struct DtoConfig {
pub python: PythonDtoStyle,
pub python_output: Option<PythonDtoStyle>,
pub node: NodeDtoStyle,
pub ruby: RubyDtoStyle,
pub php: PhpDtoStyle,
pub elixir: ElixirDtoStyle,
pub go: GoDtoStyle,
pub java: JavaDtoStyle,
pub csharp: CsharpDtoStyle,
pub r: RDtoStyle,
}Expand description
Per-language DTO/type generation style configuration.
Controls what type system is used for generated public API types in each language
(e.g., Python @dataclass vs TypedDict vs pydantic.BaseModel).
Fields§
§python: PythonDtoStylePython input type style (default: dataclass).
python_output: Option<PythonDtoStyle>Python output/return type style (default: same as python).
node: NodeDtoStyleTypeScript/Node type style (default: interface).
ruby: RubyDtoStyleRuby type style (default: struct).
php: PhpDtoStylePHP type style (default: readonly-class).
elixir: ElixirDtoStyleElixir type style (default: struct).
go: GoDtoStyleGo type style (default: struct).
java: JavaDtoStyleJava type style (default: record).
csharp: CsharpDtoStyleC# type style (default: record).
r: RDtoStyleR type style (default: list).
Implementations§
Source§impl DtoConfig
impl DtoConfig
Sourcepub fn python_output_style(&self) -> PythonDtoStyle
pub fn python_output_style(&self) -> PythonDtoStyle
Resolve the Python output type style (falls back to input style).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DtoConfig
impl<'de> Deserialize<'de> for DtoConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DtoConfig
impl RefUnwindSafe for DtoConfig
impl Send for DtoConfig
impl Sync for DtoConfig
impl Unpin for DtoConfig
impl UnsafeUnpin for DtoConfig
impl UnwindSafe for DtoConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more