pub struct WebCodegenConfig {
pub proto_files: Vec<PathBuf>,
pub rust_output_dir: PathBuf,
pub ts_output_dir: PathBuf,
pub generate_react_hooks: bool,
pub includes: Vec<PathBuf>,
pub format_code: bool,
pub custom_templates_dir: Option<PathBuf>,
}Expand description
Configuration for web code generation.
Fields§
§proto_files: Vec<PathBuf>List of proto file paths.
rust_output_dir: PathBufRust output directory for the WASM side.
ts_output_dir: PathBufTypeScript output directory for the web SDK side.
generate_react_hooks: boolWhether to generate React Hooks.
includes: Vec<PathBuf>Proto include paths used to resolve imports.
format_code: boolWhether to format generated code.
custom_templates_dir: Option<PathBuf>Optional custom template directory.
Implementations§
Trait Implementations§
Source§impl Clone for WebCodegenConfig
impl Clone for WebCodegenConfig
Source§fn clone(&self) -> WebCodegenConfig
fn clone(&self) -> WebCodegenConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WebCodegenConfig
impl RefUnwindSafe for WebCodegenConfig
impl Send for WebCodegenConfig
impl Sync for WebCodegenConfig
impl Unpin for WebCodegenConfig
impl UnsafeUnpin for WebCodegenConfig
impl UnwindSafe for WebCodegenConfig
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