pub enum Component {
Show 54 variants
AudioSpectrum(AudioSpectrum),
Text(Text),
Shape(Shape),
Image(Image),
Icon(Icon),
Svg(Svg),
Video(Video),
Gif(Gif),
Counter(Counter),
Cursor(Cursor),
Caption(Caption),
Connector(Connector),
Avatar(Avatar),
AvatarGroup(AvatarGroup),
Arrow(Arrow),
Badge(Badge),
Callout(Callout),
Chart(Chart),
Comparison(Comparison),
Countdown(Countdown),
Divider(Divider),
DotMap(DotMap),
Emitter(Emitter),
Gauge(Gauge),
GradientText(GradientText),
Heatmap(Heatmap),
Kbd(Kbd),
Line(Line),
List(List),
Lottie(Lottie),
Marquee(Marquee),
Mockup(Mockup),
Particle(Particle),
PillNav(PillNav),
Progress(Progress),
QrCode(QrCode),
NumberWheel(NumberWheel),
SuccessCheck(SuccessCheck),
Pointer(Pointer),
Rating(Rating),
Skeleton(Skeleton),
Slider(Slider),
Sparkline(Sparkline),
Stat(Stat),
Stepper(Stepper),
Switch(Switch),
RichText(RichText),
Table(Table),
TagCloud(TagCloud),
Timeline(Timeline),
Tooltip(Tooltip),
Treemap(Treemap),
Container(ContainerComponent),
Waveform(Waveform),
}Variants§
AudioSpectrum(AudioSpectrum)
Text(Text)
Shape(Shape)
Image(Image)
Icon(Icon)
Svg(Svg)
Video(Video)
Gif(Gif)
Counter(Counter)
Cursor(Cursor)
Caption(Caption)
Connector(Connector)
Avatar(Avatar)
AvatarGroup(AvatarGroup)
Arrow(Arrow)
Badge(Badge)
Callout(Callout)
Chart(Chart)
Comparison(Comparison)
Countdown(Countdown)
Divider(Divider)
DotMap(DotMap)
Emitter(Emitter)
Gauge(Gauge)
GradientText(GradientText)
Heatmap(Heatmap)
Kbd(Kbd)
Line(Line)
List(List)
Lottie(Lottie)
Marquee(Marquee)
Mockup(Mockup)
Particle(Particle)
Progress(Progress)
QrCode(QrCode)
NumberWheel(NumberWheel)
SuccessCheck(SuccessCheck)
Pointer(Pointer)
Rating(Rating)
Skeleton(Skeleton)
Slider(Slider)
Sparkline(Sparkline)
Stat(Stat)
Stepper(Stepper)
Switch(Switch)
RichText(RichText)
Table(Table)
TagCloud(TagCloud)
Timeline(Timeline)
Tooltip(Tooltip)
Treemap(Treemap)
Container(ContainerComponent)
Waveform(Waveform)
Implementations§
Source§impl Component
impl Component
pub fn as_animatable(&self) -> Option<&dyn Animatable>
pub fn as_timed(&self) -> Option<&dyn Timed>
pub fn as_styled(&self) -> &dyn Styled
pub fn as_painter(&self) -> Option<&dyn Painter>
pub fn paints_its_own_background(&self) -> bool
pub fn with_resolved_background(&self, resolved: &CssStyle) -> Option<Component>
pub fn with_cascaded_style(&self, resolved: &CssStyle) -> Option<Component>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Component
impl<'de> Deserialize<'de> for Component
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
Source§impl JsonSchema for Component
impl JsonSchema for Component
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnsafeUnpin for Component
impl UnwindSafe for Component
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more