pub struct AppServerCodegenRequest {
pub target: AppServerCodegenTarget,
pub out_dir: PathBuf,
pub experimental: bool,
pub overrides: CliOverridesPatch,
}Expand description
Request for codex app-server generate-ts or generate-json-schema.
Fields§
§target: AppServerCodegenTargetCodegen target and optional Prettier path (TypeScript only).
out_dir: PathBufOutput directory passed to --out; created if missing.
experimental: boolPasses --experimental to the app-server codegen subcommand when enabled.
overrides: CliOverridesPatchPer-call CLI overrides layered on top of the builder.
Implementations§
Source§impl AppServerCodegenRequest
impl AppServerCodegenRequest
Sourcepub fn typescript(out_dir: impl Into<PathBuf>) -> Self
pub fn typescript(out_dir: impl Into<PathBuf>) -> Self
Generates TypeScript bindings into out_dir.
Sourcepub fn json_schema(out_dir: impl Into<PathBuf>) -> Self
pub fn json_schema(out_dir: impl Into<PathBuf>) -> Self
Generates a JSON schema bundle into out_dir.
Sourcepub fn experimental(self, enable: bool) -> Self
pub fn experimental(self, enable: bool) -> Self
Controls whether --experimental is passed to the codegen subcommand.
Sourcepub fn prettier(self, prettier: impl Into<PathBuf>) -> Self
pub fn prettier(self, prettier: impl Into<PathBuf>) -> Self
Formats TypeScript output with the provided Prettier executable (no-op for JSON schema).
Sourcepub fn with_overrides(self, overrides: CliOverridesPatch) -> Self
pub fn with_overrides(self, overrides: CliOverridesPatch) -> Self
Replaces the default CLI overrides for this request.
Sourcepub fn config_override(
self,
key: impl Into<String>,
value: impl Into<String>,
) -> Self
pub fn config_override( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
Adds a --config key=value override for this request.
Sourcepub fn config_override_raw(self, raw: impl Into<String>) -> Self
pub fn config_override_raw(self, raw: impl Into<String>) -> Self
Adds a raw --config key=value override without validation.
Sourcepub fn profile(self, profile: impl Into<String>) -> Self
pub fn profile(self, profile: impl Into<String>) -> Self
Sets the config profile (--profile) for this request.
Sourcepub fn enable_feature(self, name: impl Into<String>) -> Self
pub fn enable_feature(self, name: impl Into<String>) -> Self
Adds a --enable <feature> toggle for this codegen call.
Sourcepub fn disable_feature(self, name: impl Into<String>) -> Self
pub fn disable_feature(self, name: impl Into<String>) -> Self
Adds a --disable <feature> toggle for this codegen call.
Trait Implementations§
Source§impl Clone for AppServerCodegenRequest
impl Clone for AppServerCodegenRequest
Source§fn clone(&self) -> AppServerCodegenRequest
fn clone(&self) -> AppServerCodegenRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AppServerCodegenRequest
impl Debug for AppServerCodegenRequest
Source§impl PartialEq for AppServerCodegenRequest
impl PartialEq for AppServerCodegenRequest
impl Eq for AppServerCodegenRequest
impl StructuralPartialEq for AppServerCodegenRequest
Auto Trait Implementations§
impl Freeze for AppServerCodegenRequest
impl RefUnwindSafe for AppServerCodegenRequest
impl Send for AppServerCodegenRequest
impl Sync for AppServerCodegenRequest
impl Unpin for AppServerCodegenRequest
impl UnsafeUnpin for AppServerCodegenRequest
impl UnwindSafe for AppServerCodegenRequest
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.