openlark-client 0.20.0

OpenLark 高级客户端 - 统一入口点(meta 链式字段访问)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! `openlark-client/docs` feature 的最小对外契约检查。
//!
//! 该 feature 至少需要保证 `client.docs.config()` 可用。

#![cfg(feature = "docs")]

use openlark_client::Client;

#[test]
fn docs_feature_exposes_config_entry() {
    let client = Client::builder()
        .app_id("test_app")
        .app_secret("test_secret")
        .build()
        .expect("client should build with docs feature");

    assert_eq!(client.docs.config().app_id(), "test_app");
}