Skip to main content

Crate line_bot_sdk_rust

Crate line_bot_sdk_rust 

Source
Expand description

§LINE Bot SDK for Rust

A Rust SDK for the LINE Messaging API.

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

use line_bot_sdk_rust::client::LINE;

let line = LINE::new("YOUR_CHANNEL_ACCESS_TOKEN".to_string());

§Feature Flags

FeatureDescription
rocket_supportEnables [support::rocket::Signature] extractor for the Rocket framework
actix_supportEnables [support::actix::Signature] extractor for the actix-web framework
axum_supportEnables [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:

Re-exports§

pub use line_channel_access_token;
pub use line_insight;
pub use line_liff;
pub use line_manage_audience;
pub use line_messaging_api;
pub use line_module;
pub use line_module_attach;
pub use line_shop;
pub use line_webhook;

Modules§

client
LINE API client module.
parser
Webhook request parsing and signature validation.
support
Web framework integrations for extracting the x-line-signature header.