36 个版本
0.1.36 | 2022 年 6 月 3 日 |
---|---|
0.1.35 | 2022 年 3 月 3 日 |
0.1.34 | 2021 年 9 月 12 日 |
0.1.32 | 2021 年 6 月 21 日 |
0.1.2 | 2020 年 7 月 10 日 |
#1 in #cio
每月 63 次下载
用于 2 crates
46KB
974 代码行
cio
用于执行 CIO 活动的辅助函数和类型。
配置
运行时标志
可以通过环境变量控制特定的运行时行为。默认情况下禁用标志,将变量设置为 true
将启用该功能。
标志 | 描述 |
---|---|
RFD_PDFS_IN_GITHUB | 启用将渲染的 RFD PDF 提交回其源仓库 |
RFD_PDFS_IN_GOOGLE_DRIVE | 启用将渲染的 RFD PDF 写入 Google Drive |
此应用程序服务器及其周围环境的架构是
lib.rs
:
- 与 Airtable API 交互的 Rust 库。
- 有关更多信息,Airtable API 的文档可在 airtable.com/api 找到。
- 示例
-
- use airtable_api::{Airtable, Record};
- use serde::{Deserialize, Serialize};
- async fn get_records() {
-
// Initialize the Airtable client.
-
let airtable = Airtable::new_from_env();
-
// Get the current records from a table.
-
let mut records: Vec<Record<SomeFormat>> = airtable
-
.list_records(
-
"Table Name",
-
"Grid view",
-
vec!["the", "fields", "you", "want", "to", "return"],
-
)
-
.await
-
.unwrap();
-
// Iterate over the records.
-
for (i, record) in records.clone().iter().enumerate() {
-
println!("{} - {:?}", i, record);
-
}
- }
- #[derive(Debug, Clone, Serialize, Deserialize)]
- pub struct SomeFormat {
-
pub x: bool,
- }
-
依赖项
~11–26MB
~371K SLoC