BotUser
Defined in the bots module.Rust AI Agent SDK Represents a user in a messaging platform.
Fields
| Name | Type | Description |
|---|---|---|
user_id | String | Platform-specific user identifier |
username | Option<String> | User’s username (if available) |
display_name | Option<String> | User’s display name |
is_bot | bool | Whether this user is a bot |
metadata | HashMap<String | Additional platform-specific metadata |
serde_json | :Value> | Additional platform-specific metadata |
Methods
new
| Name | Type |
|---|---|
user_id | impl Into<String> |
username
| Name | Type |
|---|---|
username | impl Into<String> |
display_name
| Name | Type |
|---|---|
name | impl Into<String> |
is_bot
| Name | Type |
|---|---|
is_bot | bool |
metadata
| Name | Type |
|---|---|
key | impl Into<String> |
value | serde_json::Value |
Source
View on GitHub
praisonai/src/bots/mod.rs at line 85
