pub struct EuvCardProps {
pub title: CowText,
pub level: Option<EuvHeadingLevel>,
}Expand description
Props for the euv_card component.
Defines the strongly-typed interface for the card wrapper.
Fields§
§title: CowTextThe card title displayed in the header.
level: Option<EuvHeadingLevel>The heading level the title is rendered at.
The level is a setting of the component because the library cannot know the outline of the page the card sits in: the same card is the section of one page and the whole panel of another.
Implementations§
Source§impl EuvCardProps
impl EuvCardProps
pub fn get_title(&self) -> &CowText
pub fn get_mut_title(&mut self) -> &mut CowText
pub fn set_title(&mut self, val: CowText) -> &mut Self
pub fn get_level(&self) -> Option<EuvHeadingLevel>
pub fn try_get_level(&self) -> Option<EuvHeadingLevel>
pub fn get_mut_level(&mut self) -> &mut Option<EuvHeadingLevel>
pub fn set_level(&mut self, val: Option<EuvHeadingLevel>) -> &mut Self
Source§impl EuvCardProps
impl EuvCardProps
pub fn new(title: CowText, level: Option<EuvHeadingLevel>) -> Self
Trait Implementations§
Source§impl Clone for EuvCardProps
impl Clone for EuvCardProps
Source§impl Debug for EuvCardProps
impl Debug for EuvCardProps
Auto Trait Implementations§
impl Forget for EuvCardProps
impl Freeze for EuvCardProps
impl Move for EuvCardProps
impl RefUnwindSafe for EuvCardProps
impl Send for EuvCardProps
impl Sync for EuvCardProps
impl Unpin for EuvCardProps
impl UnsafeUnpin for EuvCardProps
impl UnwindSafe for EuvCardProps
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