pub trait Prefab: Serialize + DeserializeOwned {
    // Provided methods
    fn from_prefab(data: Value) -> Result<Self, PrefabError> { ... }
    fn to_prefab(&self) -> Result<Value, PrefabError> { ... }
}
Expand description

The Prefab trait is implemented for types that are able to translate to and from PrefabValue’s

PrefabValue’s can then, in turn, be serialized or deserialized for persistance, transfer, or other purposes.

Provided Methods§

Implementations on Foreign Types§

source§

impl Prefab for u128

source§

impl Prefab for isize

source§

impl Prefab for u32

source§

impl Prefab for f32

source§

impl Prefab for f64

source§

impl Prefab for i128

source§

impl Prefab for u64

source§

impl Prefab for String

source§

impl Prefab for i32

source§

impl Prefab for u8

source§

impl Prefab for i16

source§

impl Prefab for i8

source§

impl Prefab for bool

source§

impl Prefab for ()

source§

impl Prefab for usize

source§

impl Prefab for u16

source§

impl Prefab for i64

Implementors§

source§

impl Prefab for Value

source§

impl Prefab for ButtonPaperOverrideStyle

source§

impl Prefab for TextInputMode

source§

impl Prefab for WidgetIdOrRef

source§

impl Prefab for PropsGroupPrefab

source§

impl Prefab for ContextPaperProps

source§

impl Prefab for IconPaperProps

source§

impl Prefab for ModalPaperProps

source§

impl Prefab for PaperContentLayoutProps

source§

impl Prefab for PaperProps

source§

impl Prefab for SideScrollbarsPaperProps

source§

impl Prefab for SwitchPaperProps

source§

impl Prefab for TextFieldPaperProps

source§

impl Prefab for TextPaperProps

source§

impl Prefab for ThemeProps

source§

impl Prefab for ThemedWidgetProps

source§

impl Prefab for TooltipPaperProps

source§

impl Prefab for AnchorNotifyProps

source§

impl Prefab for AnchorProps

source§

impl Prefab for PivotBoxProps

source§

impl Prefab for ContentBoxProps

source§

impl Prefab for ContextBoxProps

source§

impl Prefab for FlexBoxProps

source§

impl Prefab for GridBoxProps

source§

impl Prefab for HiddenBoxProps

source§

impl Prefab for HorizontalBoxProps

source§

impl Prefab for PortalsContainer

source§

impl Prefab for ScrollBoxOwner

source§

impl Prefab for SideScrollbarsProps

source§

impl Prefab for SideScrollbarsState

source§

impl Prefab for SizeBoxProps

source§

impl Prefab for SwitchBoxProps

source§

impl Prefab for TabPlateProps

source§

impl Prefab for TabsBoxProps

source§

impl Prefab for TabsState

source§

impl Prefab for TooltipState

source§

impl Prefab for VariantBoxProps

source§

impl Prefab for VerticalBoxProps

source§

impl Prefab for WrapBoxProps

source§

impl Prefab for ImageBoxProps

source§

impl Prefab for ButtonNotifyProps

source§

impl Prefab for ButtonProps

source§

impl Prefab for TextInputNotifyProps

source§

impl Prefab for TextInputProps

source§

impl Prefab for NavButtonTrackingActive

source§

impl Prefab for NavContainerActive

source§

impl Prefab for NavItemActive

source§

impl Prefab for NavJumpActive

source§

impl Prefab for NavJumpLooped

source§

impl Prefab for NavJumpMapProps

source§

impl Prefab for ScrollViewNotifyProps

source§

impl Prefab for ScrollViewRange

source§

impl Prefab for ScrollViewState

source§

impl Prefab for SpaceBoxProps

source§

impl Prefab for MessageForwardProps

source§

impl Prefab for RelativeLayoutProps

source§

impl Prefab for WidgetAlpha

source§

impl Prefab for TextBoxProps

source§

impl Prefab for WidgetId

source§

impl Prefab for WidgetRef

source§

impl Prefab for ContentBoxItemLayout

source§

impl Prefab for FlexBoxItemLayout

source§

impl Prefab for GridBoxItemLayout

source§

impl Prefab for Color

source§

impl Prefab for IntRect

source§

impl Prefab for IntVec2

source§

impl Prefab for Rect

source§

impl Prefab for Transform

source§

impl Prefab for Vec2

source§

impl<T> Prefab for DataBinding<T>where T: Debug + Default + Send + Sync,