Skip to main content

poolster_core/
style.rs

1use serde::{Deserialize, Serialize};
2
3/// Public instantiated-client layout. TypeScript retains direct function
4/// exports in both modes; native language plugins use the same choice to emit
5/// either their flat idiomatic client or a resource-namespaced facade.
6#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
7#[serde(rename_all = "snake_case")]
8pub enum SdkClientStyle {
9    /// `client.createMessage(...)` (or its native-language equivalent).
10    Flat,
11    /// `client.messages.create(...)` (or its native-language equivalent),
12    /// using OpenAPI tags first and stable path-derived namespaces when a spec
13    /// has no tags.
14    #[default]
15    Namespaced,
16}