pub struct CardConfig {
pub modifier: Modifier,
pub enabled: bool,
pub container_color: Color,
pub content_color: Color,
pub disabled_container_color: Color,
pub disabled_content_color: Color,
pub shape_radius: f32,
pub tonal_elevation: f32,
pub state_elevation: Option<StateElevation>,
pub border: Option<(f32, Color)>,
pub interaction_source: Option<MutableInteractionSource>,
}Expand description
Configuration for Card.
Fields§
§modifier: Modifier§enabled: boolWhen false, renders disabled colors and does not respond to clicks.
container_color: Color§content_color: Color§disabled_container_color: Color§disabled_content_color: Color§shape_radius: f32§tonal_elevation: f32§state_elevation: Option<StateElevation>§border: Option<(f32, Color)>§interaction_source: Option<MutableInteractionSource>Trait Implementations§
Source§impl Clone for CardConfig
impl Clone for CardConfig
Source§fn clone(&self) -> CardConfig
fn clone(&self) -> CardConfig
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 moreSource§impl Debug for CardConfig
impl Debug for CardConfig
Auto Trait Implementations§
impl !RefUnwindSafe for CardConfig
impl !Send for CardConfig
impl !Sync for CardConfig
impl !UnwindSafe for CardConfig
impl Freeze for CardConfig
impl Unpin for CardConfig
impl UnsafeUnpin for CardConfig
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