Skip to main content

Crate dingding

Crate dingding 

Source
Expand description

DingTalk SDK and bot framework.

The crate keeps the public surface small:

  • DingTalk is the SDK entry point.
  • webhook sends custom robot and session webhook messages when the webhook feature is enabled.
  • bot routes incoming robot events when the bot feature is enabled.
  • stream runs enterprise application robots over DingTalk Stream when the stream feature is enabled.

Modules§

auth
Authentication credentials and token cache helpers.
bot
Bot callback routing, typed message contexts, and webhook callback verification.
openapi
Typed OpenAPI helpers for enterprise application robots and interactive cards.
prelude
Common imports for building DingTalk robot applications. Common imports for DingTalk bot applications.
types
Public type re-exports grouped by capability.
webhook
Custom robot and session webhook message sender.

Structs§

BodySnippetConfig
Controls whether response snippets are retained on DingTalk API errors.
DingTalk
Main SDK entry point.
DingTalkBuilder
Builder for DingTalk.
RetryPolicy
Retry policy covering attempts, backoff, and retryable failure classes.

Enums§

ClientProfile
Preset transport defaults tuned for common SDK traffic patterns.
Error
Unified SDK error.
ErrorKind
Stable high-level error category.

Type Aliases§

Client
Backward-friendly alias for the main SDK client.
Result
SDK result type.

Attribute Macros§

handler
Declares a DingTalk bot handler and generates a <function>_route helper.