pub struct EuvHeroAction {
pub text: &'static str,
pub link: &'static str,
pub primary: bool,
}Expand description
One action button of the euv_hero component.
Fields§
§text: &'static strThe button text.
link: &'static strThe target route or external URL.
primary: boolWhether this is the primary (solid) button style.
Implementations§
Source§impl EuvHeroAction
impl EuvHeroAction
pub fn get_text(&self) -> &'static str
pub fn get_mut_text(&mut self) -> &mut &'static str
pub fn set_text(&mut self, val: &'static str) -> &mut Self
pub fn get_link(&self) -> &'static str
pub fn get_mut_link(&mut self) -> &mut &'static str
pub fn set_link(&mut self, val: &'static str) -> &mut Self
pub fn get_primary(&self) -> bool
pub fn get_mut_primary(&mut self) -> &mut bool
pub fn set_primary(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for EuvHeroAction
impl Clone for EuvHeroAction
Source§fn clone(&self) -> EuvHeroAction
fn clone(&self) -> EuvHeroAction
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 EuvHeroAction
Source§impl Debug for EuvHeroAction
impl Debug for EuvHeroAction
Source§impl Default for EuvHeroAction
impl Default for EuvHeroAction
Source§fn default() -> EuvHeroAction
fn default() -> EuvHeroAction
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EuvHeroAction
impl RefUnwindSafe for EuvHeroAction
impl Send for EuvHeroAction
impl Sync for EuvHeroAction
impl Unpin for EuvHeroAction
impl UnsafeUnpin for EuvHeroAction
impl UnwindSafe for EuvHeroAction
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