pub struct FrontendComponent {
pub name: String,
pub component_type: FrontendComponentType,
pub display_name: String,
pub description: Option<String>,
pub icon: Option<String>,
pub default_size: Option<ComponentSize>,
pub min_size: Option<ComponentSize>,
pub max_size: Option<ComponentSize>,
pub config_schema: Option<Value>,
pub refreshable: bool,
pub refresh_interval: u64,
}Expand description
Frontend component definition
Fields§
§name: StringComponent identifier
component_type: FrontendComponentTypeComponent type
display_name: StringHuman-readable name
description: Option<String>Component description
icon: Option<String>Icon name or SVG path
default_size: Option<ComponentSize>Default size
min_size: Option<ComponentSize>Minimum size
max_size: Option<ComponentSize>Maximum size
config_schema: Option<Value>Configuration schema (JSON Schema)
refreshable: boolSupports manual refresh
refresh_interval: u64Default refresh interval in milliseconds (0 = no auto-refresh)
Trait Implementations§
Source§impl Clone for FrontendComponent
impl Clone for FrontendComponent
Source§fn clone(&self) -> FrontendComponent
fn clone(&self) -> FrontendComponent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrontendComponent
impl Debug for FrontendComponent
Source§impl<'de> Deserialize<'de> for FrontendComponent
impl<'de> Deserialize<'de> for FrontendComponent
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
Auto Trait Implementations§
impl Freeze for FrontendComponent
impl RefUnwindSafe for FrontendComponent
impl Send for FrontendComponent
impl Sync for FrontendComponent
impl Unpin for FrontendComponent
impl UnsafeUnpin for FrontendComponent
impl UnwindSafe for FrontendComponent
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