pub struct DynamicType<'types> {
pub info: &'types DynamicInfo,
pub type_ident: Ident,
pub trait_ident: Ident,
pub deserializer_ident: Ident,
pub sub_traits: Option<Vec<IdentPath>>,
pub derived_types: Vec<DerivedType>,
}Expand description
Contains additional information for the rendering process
of a TypeVariant::Dynamic type.
Fields§
§info: &'types DynamicInfoReference to the original type information.
type_ident: IdentThe identifier of the rendered type.
trait_ident: IdentThe identifier of the trait that needs to be implemented by the derived types.
deserializer_ident: IdentIdentifier of the deserializer for this type.
sub_traits: Option<Vec<IdentPath>>List of additional traits that need to be implemented by the derived types (if this type was inherited from another dynamic type).
derived_types: Vec<DerivedType>List of derived types.
Trait Implementations§
Auto Trait Implementations§
impl<'types> Freeze for DynamicType<'types>
impl<'types> RefUnwindSafe for DynamicType<'types>
impl<'types> !Send for DynamicType<'types>
impl<'types> !Sync for DynamicType<'types>
impl<'types> Unpin for DynamicType<'types>
impl<'types> UnwindSafe for DynamicType<'types>
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