pub struct HomeComponent {
pub title: Option<String>,
pub subtitle: Option<String>,
pub value: HomeComponentValue,
}Expand description
A component for a home layout.
Fields§
§title: Option<String>The title of the component.
subtitle: Option<String>The subtitle of the component.
value: HomeComponentValueThe component value.
Trait Implementations§
Source§impl Clone for HomeComponent
impl Clone for HomeComponent
Source§fn clone(&self) -> HomeComponent
fn clone(&self) -> HomeComponent
Returns a duplicate of the value. Read more
1.0.0 · 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 HomeComponent
impl Debug for HomeComponent
Source§impl Default for HomeComponent
impl Default for HomeComponent
Source§impl<'de> Deserialize<'de> for HomeComponent
impl<'de> Deserialize<'de> for HomeComponent
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 PartialEq for HomeComponent
impl PartialEq for HomeComponent
Source§impl Serialize for HomeComponent
impl Serialize for HomeComponent
impl StructuralPartialEq for HomeComponent
Auto Trait Implementations§
impl Freeze for HomeComponent
impl RefUnwindSafe for HomeComponent
impl Send for HomeComponent
impl Sync for HomeComponent
impl Unpin for HomeComponent
impl UnwindSafe for HomeComponent
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