pub struct ApiKeyUsageAlertEmail {
pub to: String,
pub name: String,
pub key_name: String,
pub ip_address: String,
pub first_use: bool,
pub used_at: String,
pub user_agent: String,
}Expand description
API key usage from new IP alert
Fields§
§to: StringRecipient email address
name: StringUser’s display name
key_name: StringAPI key name/label
ip_address: StringIP address that used the key
first_use: boolWhether this is the first use of the key
used_at: StringTime of usage (formatted)
user_agent: StringUser agent/device info
Trait Implementations§
Source§impl Clone for ApiKeyUsageAlertEmail
impl Clone for ApiKeyUsageAlertEmail
Source§fn clone(&self) -> ApiKeyUsageAlertEmail
fn clone(&self) -> ApiKeyUsageAlertEmail
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 ApiKeyUsageAlertEmail
impl Debug for ApiKeyUsageAlertEmail
Source§impl EmailTemplate for ApiKeyUsageAlertEmail
impl EmailTemplate for ApiKeyUsageAlertEmail
Source§fn template_name(&self) -> &'static str
fn template_name(&self) -> &'static str
Get the template name (without extension) Read more
Source§fn priority(&self) -> EmailPriority
fn priority(&self) -> EmailPriority
Get the priority level (for queue ordering)
Auto Trait Implementations§
impl Freeze for ApiKeyUsageAlertEmail
impl RefUnwindSafe for ApiKeyUsageAlertEmail
impl Send for ApiKeyUsageAlertEmail
impl Sync for ApiKeyUsageAlertEmail
impl Unpin for ApiKeyUsageAlertEmail
impl UnwindSafe for ApiKeyUsageAlertEmail
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