pub struct EmailConfig {
pub enabled: bool,
pub my_email: String,
pub provider: SmtpProvider,
pub host: String,
pub port: u16,
pub tls: Option<SmtpTls>,
pub user: String,
pub secret_ref: String,
pub rate_limit_per_hour: usize,
}Expand description
Email configuration.
Controls SMTP email sending. When enabled, agents gain the send_email tool.
v1 sends to the user’s own email only.
Fields§
§enabled: boolEnable the email system.
my_email: StringThe user’s email address (used as both sender and default recipient).
provider: SmtpProviderSMTP provider preset (“gmail”, “icloud”, “fastmail”, “custom”).
host: StringSMTP host (auto-filled from provider if empty).
port: u16SMTP port (auto-filled from provider if 0).
tls: Option<SmtpTls>TLS mode (auto-filled from provider if None).
user: StringSMTP auth username (defaults to my_email if empty).
secret_ref: StringCredential store key for the SMTP password.
Falls back to OXIOS_EMAIL_PASSWORD env var.
rate_limit_per_hour: usizeMaximum emails per hour (rate limit, default: 10).
Implementations§
Source§impl EmailConfig
impl EmailConfig
Sourcepub fn provider(&self) -> SmtpProvider
pub fn provider(&self) -> SmtpProvider
Resolve the effective provider, falling back to Gmail.
Trait Implementations§
Source§impl Clone for EmailConfig
impl Clone for EmailConfig
Source§fn clone(&self) -> EmailConfig
fn clone(&self) -> EmailConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EmailConfig
impl Debug for EmailConfig
Source§impl Default for EmailConfig
impl Default for EmailConfig
Source§impl<'de> Deserialize<'de> for EmailConfig
impl<'de> Deserialize<'de> for EmailConfig
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 EmailConfig
impl RefUnwindSafe for EmailConfig
impl Send for EmailConfig
impl Sync for EmailConfig
impl Unpin for EmailConfig
impl UnsafeUnpin for EmailConfig
impl UnwindSafe for EmailConfig
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