pub struct EuvHeroProps {
pub title: &'static str,
pub subtitle: &'static str,
pub actions: &'static [EuvHeroAction],
}Expand description
Props for the euv_hero component.
Fields§
§title: &'static strThe main title.
subtitle: &'static strThe tagline rendered under the title (skipped when empty).
actions: &'static [EuvHeroAction]The action buttons (skipped when empty).
Implementations§
Source§impl EuvHeroProps
impl EuvHeroProps
pub fn get_title(&self) -> &'static str
pub fn get_mut_title(&mut self) -> &mut &'static str
pub fn set_title(&mut self, val: &'static str) -> &mut Self
pub fn get_subtitle(&self) -> &'static str
pub fn get_mut_subtitle(&mut self) -> &mut &'static str
pub fn set_subtitle(&mut self, val: &'static str) -> &mut Self
pub fn get_actions(&self) -> &'static [EuvHeroAction]
pub fn get_mut_actions(&mut self) -> &mut &'static [EuvHeroAction]
pub fn set_actions(&mut self, val: &'static [EuvHeroAction]) -> &mut Self
Source§impl EuvHeroProps
impl EuvHeroProps
pub fn new( title: &'static str, subtitle: &'static str, actions: &'static [EuvHeroAction], ) -> Self
Trait Implementations§
Source§impl Clone for EuvHeroProps
impl Clone for EuvHeroProps
Source§fn clone(&self) -> EuvHeroProps
fn clone(&self) -> EuvHeroProps
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 moreimpl Copy for EuvHeroProps
Source§impl Debug for EuvHeroProps
impl Debug for EuvHeroProps
Source§impl Default for EuvHeroProps
impl Default for EuvHeroProps
Source§fn default() -> EuvHeroProps
fn default() -> EuvHeroProps
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EuvHeroProps
impl RefUnwindSafe for EuvHeroProps
impl Send for EuvHeroProps
impl Sync for EuvHeroProps
impl Unpin for EuvHeroProps
impl UnsafeUnpin for EuvHeroProps
impl UnwindSafe for EuvHeroProps
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