pub struct ActionCardProps {
pub title: String,
pub description: String,
pub icon: Option<String>,
pub variant: ActionCardVariant,
pub href: Option<String>,
}Expand description
Props for a horizontal action card with variant-colored left border.
Renders icon + title + description + chevron in a clickable row.
When href is set, the card wraps in an <a> element with aria-label.
Fields§
§title: String§description: String§icon: Option<String>§variant: ActionCardVariant§href: Option<String>Optional navigation URL. When set, the card renders as an <a> element.
Trait Implementations§
Source§impl Clone for ActionCardProps
impl Clone for ActionCardProps
Source§fn clone(&self) -> ActionCardProps
fn clone(&self) -> ActionCardProps
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 ActionCardProps
impl Debug for ActionCardProps
Source§impl<'de> Deserialize<'de> for ActionCardProps
impl<'de> Deserialize<'de> for ActionCardProps
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 JsonSchema for ActionCardProps
impl JsonSchema for ActionCardProps
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ActionCardProps
impl PartialEq for ActionCardProps
Source§impl Serialize for ActionCardProps
impl Serialize for ActionCardProps
impl StructuralPartialEq for ActionCardProps
Auto Trait Implementations§
impl Freeze for ActionCardProps
impl RefUnwindSafe for ActionCardProps
impl Send for ActionCardProps
impl Sync for ActionCardProps
impl Unpin for ActionCardProps
impl UnsafeUnpin for ActionCardProps
impl UnwindSafe for ActionCardProps
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