pub struct BotConfig {Show 20 fields
pub name: Option<String>,
pub lark_app_id: String,
pub lark_app_secret: String,
pub cli_id: String,
pub cli_bin: Option<String>,
pub cli_args: Vec<String>,
pub model: Option<String>,
pub working_dir: Option<String>,
pub skip_working_dir_prompt: bool,
pub lark_encrypt_key: Option<String>,
pub lark_verification_token: Option<String>,
pub allowed_users: Vec<String>,
pub private_card: bool,
pub allowed_chat_groups: Vec<String>,
pub chat_grants: HashMap<String, Vec<String>>,
pub global_grants: Vec<String>,
pub oncall_chats: Vec<OncallChatBinding>,
pub restrict_grant_commands: bool,
pub message_quota: Option<MessageQuotaConfig>,
pub quota_state: HashMap<String, QuotaEntry>,
}Fields§
§name: Option<String>§lark_app_id: String§lark_app_secret: String§cli_id: String§cli_bin: Option<String>§cli_args: Vec<String>§model: Option<String>§working_dir: Option<String>§skip_working_dir_prompt: bool§lark_encrypt_key: Option<String>§lark_verification_token: Option<String>§allowed_users: Vec<String>§private_card: bool§allowed_chat_groups: Vec<String>§chat_grants: HashMap<String, Vec<String>>§global_grants: Vec<String>§oncall_chats: Vec<OncallChatBinding>§restrict_grant_commands: bool§message_quota: Option<MessageQuotaConfig>§quota_state: HashMap<String, QuotaEntry>Trait Implementations§
Source§impl<'de> Deserialize<'de> for BotConfig
impl<'de> Deserialize<'de> for BotConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BotConfig
impl StructuralPartialEq for BotConfig
Auto Trait Implementations§
impl Freeze for BotConfig
impl RefUnwindSafe for BotConfig
impl Send for BotConfig
impl Sync for BotConfig
impl Unpin for BotConfig
impl UnsafeUnpin for BotConfig
impl UnwindSafe for BotConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more