pub struct GmailPubSubConfig {Show 13 fields
pub enabled: bool,
pub project_id: String,
pub subscription_name: String,
pub topic_name: Option<String>,
pub service_account_key_path: String,
pub user_email: String,
pub label_filters: Vec<String>,
pub query_filter: Option<String>,
pub auto_reply: bool,
pub max_history_fetch: u32,
pub rate_limit_requests_per_second: u32,
pub api_base_url: Option<String>,
pub oauth_token_url: Option<String>,
}Expand description
Gmail Pub/Sub configuration.
Fields§
§enabled: bool§project_id: StringGoogle Cloud project ID
subscription_name: StringPub/Sub subscription name
topic_name: Option<String>Optional fully qualified Pub/Sub topic name for Gmail watch notifications
service_account_key_path: StringPath to service account JSON key file
user_email: StringGmail user email address
label_filters: Vec<String>Label filters (e.g., [“INBOX”, “UNREAD”])
query_filter: Option<String>Optional query filter (e.g., “from:github.com”)
auto_reply: boolEnable auto-reply functionality
max_history_fetch: u32Maximum number of history records to fetch per notification
rate_limit_requests_per_second: u32Rate limit for Gmail API requests per second
api_base_url: Option<String>Optional override for the Gmail API base URL
oauth_token_url: Option<String>Optional override for the Google OAuth token URL
Trait Implementations§
Source§impl Clone for GmailPubSubConfig
impl Clone for GmailPubSubConfig
Source§fn clone(&self) -> GmailPubSubConfig
fn clone(&self) -> GmailPubSubConfig
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 GmailPubSubConfig
impl Debug for GmailPubSubConfig
Source§impl<'de> Deserialize<'de> for GmailPubSubConfig
impl<'de> Deserialize<'de> for GmailPubSubConfig
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 GmailPubSubConfig
impl RefUnwindSafe for GmailPubSubConfig
impl Send for GmailPubSubConfig
impl Sync for GmailPubSubConfig
impl Unpin for GmailPubSubConfig
impl UnsafeUnpin for GmailPubSubConfig
impl UnwindSafe for GmailPubSubConfig
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