1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*
* Copyright 2023 nanato12
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
//! # LINE Bot SDK for Rust
//!
//! A Rust SDK for the [LINE Messaging API](https://developers.line.biz/en/docs/messaging-api/overview/).
//!
//! This crate provides a high-level client ([`client::LINE`]) that wraps all LINE API modules,
//! along with webhook signature validation and web framework integrations.
//!
//! ## Quick Start
//!
//! ```no_run
//! use line_bot_sdk_rust::client::LINE;
//!
//! let line = LINE::new("YOUR_CHANNEL_ACCESS_TOKEN".to_string());
//! ```
//!
//! ## Feature Flags
//!
//! | Feature | Description |
//! |---------|-------------|
//! | `rocket_support` | Enables [`support::rocket::Signature`] extractor for the Rocket framework |
//! | `actix_support` | Enables [`support::actix::Signature`] extractor for the actix-web framework |
//! | `axum_support` | Enables [`support::axum::Signature`] extractor for the axum framework |
//!
//! ## Modules
//!
//! - [`client`] - LINE API client that bundles all API modules
//! - [`parser`] - Webhook signature validation
//! - [`support`] - Web framework integrations (feature-gated)
//!
//! The following LINE API modules are re-exported from their respective crates:
//!
//! - [`line_messaging_api`] - Send messages, manage rich menus, etc.
//! - [`line_webhook`] - Webhook event types and models
//! - [`line_channel_access_token`] - Issue and revoke channel access tokens
//! - [`line_insight`] - Retrieve message delivery and friend statistics
//! - [`line_liff`] - Manage LIFF apps
//! - [`line_manage_audience`] - Create and manage audiences
//! - [`line_module`] - LINE module operations
//! - [`line_module_attach`] - LINE module attach operations
//! - [`line_shop`] - LINE Shop API
// line-openapi modules