pub struct GoogleChatConfig {
pub enabled: bool,
pub service_account_key: String,
pub project_id: String,
pub webhook_url: Option<String>,
pub pubsub_subscription: Option<String>,
pub allowlist: Vec<String>,
pub allowed_spaces: Vec<String>,
pub rate_limit_requests_per_second: u32,
pub cards_enabled: bool,
pub attachment_download_dir: Option<String>,
pub response_mode: GoogleChatResponseMode,
}Expand description
Google Chat bot configuration.
Fields§
§enabled: bool§service_account_key: StringPath to service account JSON key file
project_id: StringGoogle Cloud project ID
webhook_url: Option<String>Webhook URL for receiving messages (if using HTTP push)
pubsub_subscription: Option<String>Pub/Sub subscription name (if using Pub/Sub)
allowlist: Vec<String>List of allowed user emails or Google Workspace user IDs
allowed_spaces: Vec<String>List of allowed space IDs (empty = all spaces)
rate_limit_requests_per_second: u32Rate limit for sending messages
cards_enabled: boolEnable Card-based responses
attachment_download_dir: Option<String>Optional local download root for inbound Google Chat attachments
response_mode: GoogleChatResponseModeResponse mode for the bot
Trait Implementations§
Source§impl Clone for GoogleChatConfig
impl Clone for GoogleChatConfig
Source§fn clone(&self) -> GoogleChatConfig
fn clone(&self) -> GoogleChatConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GoogleChatConfig
impl Debug for GoogleChatConfig
Source§impl<'de> Deserialize<'de> for GoogleChatConfig
impl<'de> Deserialize<'de> for GoogleChatConfig
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
Auto Trait Implementations§
impl Freeze for GoogleChatConfig
impl RefUnwindSafe for GoogleChatConfig
impl Send for GoogleChatConfig
impl Sync for GoogleChatConfig
impl Unpin for GoogleChatConfig
impl UnsafeUnpin for GoogleChatConfig
impl UnwindSafe for GoogleChatConfig
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