pub struct NamingTomlConfig {
pub convention: NamingConvention,
pub acronyms: Vec<String>,
}Expand description
Naming/casing options from [fraiseql.naming].
Fields§
§convention: NamingConventionGraphQL surface naming convention for the JSON-schema compile workflow
(fraiseql-cli compile schema.json). Defaults to camelCase:
snake_case columns/functions in the database, camelCase operation and
field names exposed to clients, with incoming mutation input keys recased
camelCase → snake_case before they reach the SQL functions. Set
convention = "preserve" to keep names exactly as authored (snake_case
on the wire, no recasing). This knob does not apply to the author-in-TOML
workflow, which carries its own naming_convention.
acronyms: Vec<String>Acronyms whose internal digit stays attached when a GraphQL field name is
mapped back to its snake_case JSONB key (e.g. s3, ipv4, oauth2),
added on top of the engine’s built-in defaults. Author the atomic form
(s3, not s_3). Example: acronyms = ["s3", "ipv4"].
Trait Implementations§
Source§impl Clone for NamingTomlConfig
impl Clone for NamingTomlConfig
Source§fn clone(&self) -> NamingTomlConfig
fn clone(&self) -> NamingTomlConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NamingTomlConfig
impl Debug for NamingTomlConfig
Source§impl Default for NamingTomlConfig
impl Default for NamingTomlConfig
Source§impl<'de> Deserialize<'de> for NamingTomlConfigwhere
NamingTomlConfig: Default,
impl<'de> Deserialize<'de> for NamingTomlConfigwhere
NamingTomlConfig: Default,
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>,
Auto Trait Implementations§
impl Freeze for NamingTomlConfig
impl RefUnwindSafe for NamingTomlConfig
impl Send for NamingTomlConfig
impl Sync for NamingTomlConfig
impl Unpin for NamingTomlConfig
impl UnsafeUnpin for NamingTomlConfig
impl UnwindSafe for NamingTomlConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more