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:

Modules§

client
LINE API client module.
line_channel_access_token
line_insight
line_liff
line_manage_audience
line_messaging_api
line_module
line_module_attach
line_shop
line_webhook
parser
Webhook request parsing and signature validation.
support
Web framework integrations for extracting the x-line-signature header.