pub struct CodegenDefaults {
pub derive: Option<Vec<String>>,
pub ext_types_field_prefix: Option<String>,
pub ext_types_type_prefix: Option<String>,
pub document_node_id_field: Option<String>,
}Expand description
Root-level default codegen settings ($codegen-defaults).
Fields§
§derive: Option<Vec<String>>Default derives for emitted Rust types.
ext_types_field_prefix: Option<String>Prefix for generated extension field names.
ext_types_type_prefix: Option<String>Prefix for generated extension type names.
document_node_id_field: Option<String>Optional document node id field name.
Trait Implementations§
Source§impl Clone for CodegenDefaults
impl Clone for CodegenDefaults
Source§fn clone(&self) -> CodegenDefaults
fn clone(&self) -> CodegenDefaults
Returns a duplicate of the value. Read more
1.0.0 · 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 CodegenDefaults
impl Debug for CodegenDefaults
Source§impl Default for CodegenDefaults
impl Default for CodegenDefaults
Source§fn default() -> CodegenDefaults
fn default() -> CodegenDefaults
Returns the “default value” for a type. Read more
Source§impl<'doc> FromEure<'doc> for CodegenDefaults
impl<'doc> FromEure<'doc> for CodegenDefaults
Source§type Error = ParseError
type Error = ParseError
The error type returned by parsing.
Source§impl IntoEure for CodegenDefaults
impl IntoEure for CodegenDefaults
Source§type Error = WriteError
type Error = WriteError
The error type returned when writing. Read more
Source§fn write(value: Self, c: &mut DocumentConstructor) -> Result<(), Self::Error>
fn write(value: Self, c: &mut DocumentConstructor) -> Result<(), Self::Error>
Write a value to the current node in the document constructor.
Source§fn write_flatten(
value: Self,
rec: &mut RecordWriter<'_>,
) -> Result<(), Self::Error>
fn write_flatten( value: Self, rec: &mut RecordWriter<'_>, ) -> Result<(), Self::Error>
Write a value as flattened record fields. Read more
Source§impl PartialEq for CodegenDefaults
impl PartialEq for CodegenDefaults
impl Eq for CodegenDefaults
impl StructuralPartialEq for CodegenDefaults
Auto Trait Implementations§
impl Freeze for CodegenDefaults
impl RefUnwindSafe for CodegenDefaults
impl Send for CodegenDefaults
impl Sync for CodegenDefaults
impl Unpin for CodegenDefaults
impl UnsafeUnpin for CodegenDefaults
impl UnwindSafe for CodegenDefaults
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
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
Compare self to
key and return true if they are equal.