Skip to main content

Component

Trait Component 

pub trait Component: Sized + Default {
    const NAME: &'static str;

    // Required methods
    fn describe() -> Description;
    fn from_source(source: &mut dyn Source) -> Result<Self, Error>;
}
Expand description

A widget’s props: the struct its instances are made of. Derive it.

Required Associated Constants§

const NAME: &'static str

The component’s name, as code calls it.

Required Methods§

fn describe() -> Description

fn from_source(source: &mut dyn Source) -> Result<Self, Error>

The props source gives.

§Errors

A required prop is missing, or a value is of another type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl Component for SearchButtonProps

§

const NAME: &'static str = "SearchButton"

§

impl Component for PopoverButtonProps

§

const NAME: &'static str = "PopoverButton"

§

impl Component for ActivityEntryProps

§

const NAME: &'static str = "ActivityEntry"

§

impl Component for ActivityTimelineProps

§

const NAME: &'static str = "ActivityTimeline"

§

impl Component for AutocompleteProps

§

const NAME: &'static str = "Autocomplete"

§

impl Component for AvatarProps

§

const NAME: &'static str = "Avatar"

§

impl Component for BadgeProps

§

const NAME: &'static str = "Badge"

§

impl Component for BannerProps

§

const NAME: &'static str = "Banner"

§

impl Component for BarChipProps

§

const NAME: &'static str = "BarChip"

§

impl Component for BarGaugeProps

§

const NAME: &'static str = "BarGauge"

§

impl Component for BlockEditorProps

§

const NAME: &'static str = "BlockEditor"

§

impl Component for BoardCardProps

§

const NAME: &'static str = "BoardCard"

§

impl Component for BoardLaneProps

§

const NAME: &'static str = "BoardLane"

§

impl Component for BoardProps

§

const NAME: &'static str = "Board"

§

impl Component for BreadcrumbProps

§

const NAME: &'static str = "Breadcrumb"

§

impl Component for BreadcrumbSegmentProps

§

const NAME: &'static str = "BreadcrumbSegment"

§

impl Component for ButtonProps

§

const NAME: &'static str = "Button"

§

impl Component for CardGridCardProps

§

const NAME: &'static str = "CardGridCard"

§

impl Component for CardGridProps

§

const NAME: &'static str = "CardGrid"

§

impl Component for CardProps

§

const NAME: &'static str = "Card"

§

impl Component for ChangeMarkProps

§

const NAME: &'static str = "ChangeMark"

§

impl Component for CheckboxProps

§

const NAME: &'static str = "Checkbox"

§

impl Component for ChipProps

§

const NAME: &'static str = "Chip"

§

impl Component for ChromeProps

§

const NAME: &'static str = "Chrome"

§

impl Component for CodeEditorProps

§

const NAME: &'static str = "CodeEditor"

§

impl Component for ColorPickerProps

§

const NAME: &'static str = "ColorPicker"

§

impl Component for ColorSwatchPickerProps

§

const NAME: &'static str = "ColorSwatchPicker"

§

impl Component for ContextMenuProps

§

const NAME: &'static str = "ContextMenu"

§

impl Component for ControlRowProps

§

const NAME: &'static str = "ControlRow"

§

impl Component for ConversationEntryProps

§

const NAME: &'static str = "ConversationEntry"

§

impl Component for ConversationListProps

§

const NAME: &'static str = "ConversationList"

§

impl Component for DataTableCellProps

§

const NAME: &'static str = "DataTableCell"

§

impl Component for DataTableColumnProps

§

const NAME: &'static str = "DataTableColumn"

§

impl Component for DataTableProps

§

const NAME: &'static str = "DataTable"

§

impl Component for DataTableRowProps

§

const NAME: &'static str = "DataTableRow"

§

impl Component for DateFieldProps

§

const NAME: &'static str = "DateField"

§

impl Component for DatePickerProps

§

const NAME: &'static str = "DatePicker"

§

impl Component for DisclosureBandProps

§

const NAME: &'static str = "DisclosureBand"

§

impl Component for DisclosureRowProps

§

const NAME: &'static str = "DisclosureRow"

§

impl Component for DockedProps

§

const NAME: &'static str = "Docked"

§

impl Component for DragItemProps

§

const NAME: &'static str = "DragItem"

§

impl Component for DragRunProps

§

const NAME: &'static str = "DragRun"

§

impl Component for DrawingProps

§

const NAME: &'static str = "Drawing"

§

impl Component for DropZoneProps

§

const NAME: &'static str = "DropZone"

§

impl Component for DropdownProps

§

const NAME: &'static str = "Dropdown"

§

impl Component for EditableLabelProps

§

const NAME: &'static str = "EditableLabel"

§

impl Component for EmojiBarProps

§

const NAME: &'static str = "EmojiBar"

§

impl Component for EmojiPickerProps

§

const NAME: &'static str = "EmojiPicker"

§

impl Component for EmptyStateProps

§

const NAME: &'static str = "EmptyState"

§

impl Component for EnumFieldProps

§

const NAME: &'static str = "EnumField"

§

impl Component for EnumOptionProps

§

const NAME: &'static str = "EnumOption"

§

impl Component for FactProps

§

const NAME: &'static str = "Fact"

§

impl Component for FactsProps

§

const NAME: &'static str = "Facts"

§

impl Component for FloatingPanelProps

§

const NAME: &'static str = "FloatingPanel"

§

impl Component for HoverToolbarProps

§

const NAME: &'static str = "HoverToolbar"

§

impl Component for IconProps

§

const NAME: &'static str = "Icon"

§

impl Component for ImageCropEditorProps

§

const NAME: &'static str = "ImageCropEditor"

§

impl Component for ImageProps

§

const NAME: &'static str = "Image"

§

impl Component for ImageViewerProps

§

const NAME: &'static str = "ImageViewer"

§

impl Component for InputHintProps

§

const NAME: &'static str = "InputHint"

§

impl Component for KeyHintProps

§

const NAME: &'static str = "KeyHint"

§

impl Component for KeyHintsProps

§

const NAME: &'static str = "KeyHints"

§

impl Component for LinkProps

§

const NAME: &'static str = "Link"

§

impl Component for ListItemProps

§

const NAME: &'static str = "ListItem"

§

impl Component for ListRowProps

§

const NAME: &'static str = "ListRow"

§

impl Component for MapPinProps

§

const NAME: &'static str = "MapPin"

§

impl Component for MapProps

§

const NAME: &'static str = "Map"

§

impl Component for MediaCardProps

§

const NAME: &'static str = "MediaCard"

§

impl Component for MediaGridProps

§

const NAME: &'static str = "MediaGrid"

§

impl Component for MediaTransportProps

§

const NAME: &'static str = "MediaTransport"

§

impl Component for MenuButtonProps

§

const NAME: &'static str = "MenuButton"

§

impl Component for MenuItemProps

§

const NAME: &'static str = "MenuItem"

§

impl Component for MenuSeparatorProps

§

const NAME: &'static str = "MenuSeparator"

§

impl Component for ModalProps

§

const NAME: &'static str = "ModalDialog"

§

impl Component for NavItemProps

§

const NAME: &'static str = "NavItem"

§

impl Component for NavListProps

§

const NAME: &'static str = "NavList"

§

impl Component for NavSectionProps

§

const NAME: &'static str = "NavSection"

§

impl Component for NavShellProps

§

const NAME: &'static str = "NavShell"

§

impl Component for NumberInputProps

§

const NAME: &'static str = "NumberInput"

§

impl Component for ObjectHeaderProps

§

const NAME: &'static str = "ObjectHeader"

§

impl Component for PagePreviewProps

§

const NAME: &'static str = "PagePreview"

§

impl Component for PageSidebarProps

§

const NAME: &'static str = "PageSidebar"

§

impl Component for PageSlideProps

§

const NAME: &'static str = "PageSlide"

§

impl Component for PersonFieldProps

§

const NAME: &'static str = "PersonField"

§

impl Component for PictureChoiceProps

§

const NAME: &'static str = "PictureChoice"

§

impl Component for PictureOptionProps

§

const NAME: &'static str = "PictureOption"

§

impl Component for PopoverProps

§

const NAME: &'static str = "Popover"

§

impl Component for PresenceFaceProps

§

const NAME: &'static str = "TabFace"

§

impl Component for ProgressBarProps

§

const NAME: &'static str = "ProgressBar"

§

impl Component for ProgressRingProps

§

const NAME: &'static str = "ProgressRing"

§

impl Component for PropertyListProps

§

const NAME: &'static str = "PropertyList"

§

impl Component for PropertyProps

§

const NAME: &'static str = "Property"

§

impl Component for QrProps

§

const NAME: &'static str = "QrCode"

§

impl Component for QuoteProps

§

const NAME: &'static str = "Quote"

§

impl Component for ReactionsProps

§

const NAME: &'static str = "Reactions"

§

impl Component for RichInputProps

§

const NAME: &'static str = "RichInput"

§

impl Component for RichTextLineProps

§

const NAME: &'static str = "RichTextLine"

§

impl Component for ScrollProps

§

const NAME: &'static str = "Scroll"

§

impl Component for SectionProps

§

const NAME: &'static str = "Section"

§

impl Component for SegmentProps

§

const NAME: &'static str = "Segment"

§

impl Component for ShortcutRecorderProps

§

const NAME: &'static str = "ShortcutRecorder"

§

impl Component for SignalMeterProps

§

const NAME: &'static str = "SignalMeter"

§

impl Component for SkeletonProps

§

const NAME: &'static str = "Skeleton"

§

impl Component for SliderProps

§

const NAME: &'static str = "Slider"

§

impl Component for SpinnerProps

§

const NAME: &'static str = "Spinner"

§

impl Component for StatGroupProps

§

const NAME: &'static str = "StatGroup"

§

impl Component for StatTileProps

§

const NAME: &'static str = "StatTile"

§

impl Component for StatusLineProps

§

const NAME: &'static str = "StatusLine"

§

impl Component for StepperProps

§

const NAME: &'static str = "Stepper"

§

impl Component for SuggestionProps

§

const NAME: &'static str = "Suggestion"

§

impl Component for SwipeActionProps

§

const NAME: &'static str = "SwipeAction"

§

impl Component for SwipeProps

§

const NAME: &'static str = "Swipe"

§

impl Component for TabItemProps

§

const NAME: &'static str = "TabItem"

§

impl Component for TabStripProps

§

const NAME: &'static str = "TabStrip"

§

impl Component for TextInputProps

§

const NAME: &'static str = "TextInput"

§

impl Component for TextProps

§

const NAME: &'static str = "Text"

§

impl Component for TextStackProps

§

const NAME: &'static str = "TextStack"

§

impl Component for TimeFieldProps

§

const NAME: &'static str = "TimeField"

§

impl Component for TimePickerProps

§

const NAME: &'static str = "TimePicker"

§

impl Component for TimeProps

§

const NAME: &'static str = "Time"

§

impl Component for ToggleGroupProps

§

const NAME: &'static str = "ToggleGroup"

§

impl Component for ToggleProps

§

const NAME: &'static str = "Toggle"

§

impl Component for ToolbarButtonProps

§

const NAME: &'static str = "ToolbarButton"

§

impl Component for ToolbarProps

§

const NAME: &'static str = "Toolbar"

§

impl Component for ToolbarSeparatorProps

§

const NAME: &'static str = "ToolbarSeparator"

§

impl Component for ToolbarSpacerProps

§

const NAME: &'static str = "ToolbarSpacer"

§

impl Component for TreeViewNodeProps

§

const NAME: &'static str = "TreeViewNode"

§

impl Component for TreeViewProps

§

const NAME: &'static str = "TreeView"

§

impl Component for TreeViewRowProps

§

const NAME: &'static str = "TreeViewRow"

§

impl Component for UnreadDividerProps

§

const NAME: &'static str = "UnreadDivider"

§

impl Component for VideoPlayerProps

§

const NAME: &'static str = "VideoPlayer"

§

impl Component for ViewTabsProps

§

const NAME: &'static str = "ViewTabs"

§

impl Component for VirtualListProps

§

const NAME: &'static str = "VirtualList"

§

impl Component for WebViewProps

§

const NAME: &'static str = "WebView"

§

impl Component for WindowFrameProps

§

const NAME: &'static str = "WindowFrame"

§

impl Component for WindowPreviewProps

§

const NAME: &'static str = "WindowPreview"

§

impl Component for WindowWellProps

§

const NAME: &'static str = "WindowWell"