pub struct CsGenOptions {
pub root_namespace: Option<String>,
pub indent_width: usize,
pub use_records: bool,
pub emit_corba_traits: bool,
}Expand description
Configuration of the C# code generator.
Fields§
§root_namespace: Option<String>Optional outer namespace that wraps the entire output. None
or empty = no wrapper.
indent_width: usizeIndent width in spaces. Default 4 (C# coding conventions).
use_records: boolIf true: struct mapping uses record class (spec-compliant).
If false: struct mapping uses plain class (legacy CCM).
Default true.
emit_corba_traits: boolAnnex A.1 (idl4-csharp-1.0) — opt-in: emits a CORBA marker
(Corba.ValueTypeAttribute) plus a static Corba.Traits helper
per top-level type. Default false.
Trait Implementations§
Source§impl Clone for CsGenOptions
impl Clone for CsGenOptions
Source§fn clone(&self) -> CsGenOptions
fn clone(&self) -> CsGenOptions
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 moreSource§impl Debug for CsGenOptions
impl Debug for CsGenOptions
Auto Trait Implementations§
impl Freeze for CsGenOptions
impl RefUnwindSafe for CsGenOptions
impl Send for CsGenOptions
impl Sync for CsGenOptions
impl Unpin for CsGenOptions
impl UnsafeUnpin for CsGenOptions
impl UnwindSafe for CsGenOptions
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