pub enum ProblemCategory {
Show 21 variants
BillDue {
amount: f64,
due_date: DateTime<Utc>,
vendor: String,
},
MaintenanceNeeded {
item: String,
urgency: String,
},
SupplyLow {
item: String,
current_quantity: u32,
reorder_threshold: u32,
},
EnergyAnomaly {
device: String,
expected_kwh: f64,
actual_kwh: f64,
},
DeviceOffline {
device_id: String,
device_name: String,
last_seen: DateTime<Utc>,
},
SecurityAlert {
alert_type: String,
location: String,
},
PackageDelayed {
tracking_id: String,
carrier: String,
expected_date: String,
},
AppointmentReminder {
title: String,
time: DateTime<Utc>,
location: Option<String>,
},
WeatherAlert {
alert_type: String,
severity: String,
},
SubscriptionRenewal {
service: String,
amount: f64,
renewal_date: DateTime<Utc>,
},
CalendarConflict {
event1: String,
event2: String,
overlap_minutes: u32,
},
DeadlineApproaching {
project: String,
deadline: DateTime<Utc>,
days_remaining: u32,
},
EmailUrgent {
from: String,
subject: String,
received_at: DateTime<Utc>,
},
MeetingPrepNeeded {
meeting: String,
time: DateTime<Utc>,
prep_items: Vec<String>,
},
FollowUpDue {
context: String,
person: String,
due_date: DateTime<Utc>,
},
ExpensePending {
amount: f64,
category: String,
days_pending: u32,
},
ProjectAtRisk {
project: String,
risk_factors: Vec<String>,
},
CompetitorNews {
competitor: String,
headline: String,
},
TeamBlocker {
team_member: String,
blocker: String,
},
ReportDue {
report_name: String,
due_date: DateTime<Utc>,
},
Custom {
category: String,
details: HashMap<String, Value>,
},
}Expand description
Category of problem (household or business)
Variants§
BillDue
MaintenanceNeeded
SupplyLow
EnergyAnomaly
DeviceOffline
SecurityAlert
PackageDelayed
AppointmentReminder
WeatherAlert
SubscriptionRenewal
CalendarConflict
DeadlineApproaching
EmailUrgent
MeetingPrepNeeded
FollowUpDue
ExpensePending
ProjectAtRisk
CompetitorNews
TeamBlocker
ReportDue
Custom
Custom problem type
Trait Implementations§
Source§impl Clone for ProblemCategory
impl Clone for ProblemCategory
Source§fn clone(&self) -> ProblemCategory
fn clone(&self) -> ProblemCategory
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 ProblemCategory
impl Debug for ProblemCategory
Source§impl<'de> Deserialize<'de> for ProblemCategory
impl<'de> Deserialize<'de> for ProblemCategory
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 ProblemCategory
impl RefUnwindSafe for ProblemCategory
impl Send for ProblemCategory
impl Sync for ProblemCategory
impl Unpin for ProblemCategory
impl UnwindSafe for ProblemCategory
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more