pub struct BindingsConfig {
pub aggregate_client_name: String,
pub client_crate_name: String,
pub py_error_type: String,
pub py_result_type: String,
pub napi_error_ext_trait: String,
pub ts_error_base_class: String,
pub ts_error_code_prefix: String,
pub python: Option<PythonOptions>,
}Expand description
Configuration for language-binding code generation (Python / Node.js).
Fields§
§aggregate_client_name: StringName of the aggregate client struct (e.g. "MyServiceClient").
client_crate_name: StringRust crate name used in use statements for the client crate
(e.g. "my_service_client").
This must be set explicitly because the crate name may not match the
snake_case form of aggregate_client_name (e.g. "MyServiceClient"
snake_cases to "my_service_client").
py_error_type: StringFully-qualified Python error type (e.g. "PyMyServiceError").
py_result_type: StringFully-qualified Python result alias (e.g. "PyMyServiceResult").
napi_error_ext_trait: StringName of the NAPI error extension trait (e.g. "NapiErrorExt").
ts_error_base_class: StringBase class name for TypeScript errors (e.g. "MyServiceError").
ts_error_code_prefix: StringPrefix used in native NAPI error messages (e.g. "UC").
python: Option<PythonOptions>The Python API. Required with the python output; see PythonOptions.
Trait Implementations§
Source§impl Clone for BindingsConfig
impl Clone for BindingsConfig
Auto Trait Implementations§
impl Freeze for BindingsConfig
impl RefUnwindSafe for BindingsConfig
impl Send for BindingsConfig
impl Sync for BindingsConfig
impl Unpin for BindingsConfig
impl UnsafeUnpin for BindingsConfig
impl UnwindSafe for BindingsConfig
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<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