pub struct RateLimitWarningEmail {
pub to: String,
pub name: String,
pub current_usage: u32,
pub limit: u32,
pub percentage: u32,
pub reset_date: String,
pub plan: String,
pub upgrade_url: Option<String>,
}Expand description
Rate limit warning (at 80% usage)
Fields§
§to: StringRecipient email address
name: StringUser’s display name
current_usage: u32Current usage count
limit: u32Usage limit
percentage: u32Usage percentage
reset_date: StringWhen the limit resets (formatted)
plan: StringPlan name
upgrade_url: Option<String>Upgrade URL (optional)
Trait Implementations§
Source§impl Clone for RateLimitWarningEmail
impl Clone for RateLimitWarningEmail
Source§fn clone(&self) -> RateLimitWarningEmail
fn clone(&self) -> RateLimitWarningEmail
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 RateLimitWarningEmail
impl Debug for RateLimitWarningEmail
Source§impl EmailTemplate for RateLimitWarningEmail
impl EmailTemplate for RateLimitWarningEmail
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 RateLimitWarningEmail
impl RefUnwindSafe for RateLimitWarningEmail
impl Send for RateLimitWarningEmail
impl Sync for RateLimitWarningEmail
impl Unpin for RateLimitWarningEmail
impl UnwindSafe for RateLimitWarningEmail
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