pub struct RecordCodegen {
pub type_name: Option<String>,
pub derive: Option<Vec<String>>,
}Expand description
Record type-level codegen metadata ($codegen on record schema nodes).
Fields§
§type_name: Option<String>Override generated Rust type name.
derive: Option<Vec<String>>Override derives for this type.
Trait Implementations§
Source§impl Clone for RecordCodegen
impl Clone for RecordCodegen
Source§fn clone(&self) -> RecordCodegen
fn clone(&self) -> RecordCodegen
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 RecordCodegen
impl Debug for RecordCodegen
Source§impl Default for RecordCodegen
impl Default for RecordCodegen
Source§fn default() -> RecordCodegen
fn default() -> RecordCodegen
Returns the “default value” for a type. Read more
Source§impl<'doc> FromEure<'doc> for RecordCodegen
impl<'doc> FromEure<'doc> for RecordCodegen
Source§type Error = ParseError
type Error = ParseError
The error type returned by parsing.
Source§impl IntoEure for RecordCodegen
impl IntoEure for RecordCodegen
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 RecordCodegen
impl PartialEq for RecordCodegen
impl Eq for RecordCodegen
impl StructuralPartialEq for RecordCodegen
Auto Trait Implementations§
impl Freeze for RecordCodegen
impl RefUnwindSafe for RecordCodegen
impl Send for RecordCodegen
impl Sync for RecordCodegen
impl Unpin for RecordCodegen
impl UnsafeUnpin for RecordCodegen
impl UnwindSafe for RecordCodegen
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.