pub struct TypedValueInputAttrs {
pub derive_fields: bool,
}Fields§
§derive_fields: boolEnables field-level recursion when deriving ToTyped.
When set, the derive will attempt to call .to_typed() on inner
values (for example, struct fields or data-carrying enum variants)
instead of always returning None.
This is intentionally opt-in: blindly enabling recursion would require
many types to implement ToTyped even when they don’t need to. Once
reification coverage is complete, this attribute may be replaced by
an opposite flag (see bug 1995184).
Trait Implementations§
Source§impl Default for TypedValueInputAttrs
impl Default for TypedValueInputAttrs
Source§fn default() -> TypedValueInputAttrs
fn default() -> TypedValueInputAttrs
Returns the “default value” for a type. Read more
Source§impl FromDeriveInput for TypedValueInputAttrs
impl FromDeriveInput for TypedValueInputAttrs
Source§fn from_derive_input(__di: &DeriveInput) -> Result<Self>
fn from_derive_input(__di: &DeriveInput) -> Result<Self>
Create an instance from
syn::DeriveInput, or return an error.Auto Trait Implementations§
impl Freeze for TypedValueInputAttrs
impl RefUnwindSafe for TypedValueInputAttrs
impl Send for TypedValueInputAttrs
impl Sync for TypedValueInputAttrs
impl Unpin for TypedValueInputAttrs
impl UnwindSafe for TypedValueInputAttrs
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