pub struct GleamElementConstructor {
pub element_type: String,
pub constructor: String,
pub fields: Vec<GleamElementField>,
}Expand description
One per-element_type Gleam record-constructor recipe. Keyed by the
fixture-side element_type string and consumed by the e2e Gleam codegen
when building json_object arg literals.
Fields§
§element_type: StringFixture-side element_type value this recipe applies to (e.g.
"BatchFileItem").
constructor: StringFully-qualified Gleam constructor identifier (e.g.
"kreuzberg.BatchFileItem"). Emitted verbatim before the (...) field
list.
fields: Vec<GleamElementField>Ordered list of fields to emit inside the constructor’s (...) block,
in argument-position order. Each field describes how its value is
derived from the per-item JSON object.
Trait Implementations§
Source§impl Clone for GleamElementConstructor
impl Clone for GleamElementConstructor
Source§fn clone(&self) -> GleamElementConstructor
fn clone(&self) -> GleamElementConstructor
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 GleamElementConstructor
impl Debug for GleamElementConstructor
Source§impl<'de> Deserialize<'de> for GleamElementConstructor
impl<'de> Deserialize<'de> for GleamElementConstructor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GleamElementConstructor
impl RefUnwindSafe for GleamElementConstructor
impl Send for GleamElementConstructor
impl Sync for GleamElementConstructor
impl Unpin for GleamElementConstructor
impl UnsafeUnpin for GleamElementConstructor
impl UnwindSafe for GleamElementConstructor
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