| Crates.io | adaptive-card-rs |
| lib.rs | adaptive-card-rs |
| version | 0.4.0 |
| created_at | 2025-05-29 17:03:24.782668+00 |
| updated_at | 2025-12-18 23:12:41.39889+00 |
| description | A Rust crate for working with Adaptive Cards, a format for rendering card-like user interfaces. |
| homepage | https://github.com/cobbinma/adaptive-card-rs |
| repository | https://github.com/cobbinma/adaptive-card-rs |
| max_upload_size | |
| id | 1694038 |
| size | 108,773 |
This crate provides the structures for building Adaptive Cards, which are designed to be rendered in the Adaptive Card ecosystem. Adaptive Cards are used to create rich interactive content in a structured way.
Add this crate to your Cargo.toml to use it in your Rust project:
cargo add adaptive-card-rs
Adaptive Cards consist of:
use adaptive_card_rs::card::{AdaptiveCard, Version, CardElement, TextBlock, TextSize, TextWeight};
let card = AdaptiveCard {
version: Version::V1_3,
body: vec![
CardElement::TextBlock(TextBlock {
size: Some(TextSize::Large),
weight: Some(TextWeight::Bolder),
text: "Hello, Adaptive Card!".to_string(),
wrap: Some(true),
is_subtle: Some(false),
})
],
..Default::default()
};