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