pub enum WarningKind {
Show 14 variants
Country(WarningKind),
Currency(WarningKind),
DateTime(WarningKind),
Decode(WarningKind),
Duration(WarningKind),
FieldInvalidType {
expected_type: ValueKind,
},
FieldInvalidValue {
value: String,
message: Cow<'static, str>,
},
FieldRequired {
field_name: Cow<'static, str>,
},
Money(WarningKind),
NoPeriods,
Number(WarningKind),
PeriodsOutsideStartEndDateTime {
cdr_range: Range<DateTime<Utc>>,
period_range: PeriodRange,
},
String(WarningKind),
Weekday(WarningKind),
}Expand description
The warnings that happen when pricing a CDR.
Variants§
Country(WarningKind)
The CDR location is not a valid ISO 3166-1 alpha-3 code.
Currency(WarningKind)
DateTime(WarningKind)
Decode(WarningKind)
Duration(WarningKind)
FieldInvalidType
A field in the tariff doesn’t have the expected type.
FieldInvalidValue
A field in the tariff doesn’t have the expected value.
Fields
FieldRequired
The given field is required.
Money(WarningKind)
NoPeriods
The CDR has no charging periods.
Number(WarningKind)
PeriodsOutsideStartEndDateTime
The start_date_time of at least one of the charging_periods is outside of the
CDR’s start_date_time-end_date_time range.
String(WarningKind)
Weekday(WarningKind)
Trait Implementations§
Source§impl Debug for WarningKind
impl Debug for WarningKind
Source§impl Display for WarningKind
impl Display for WarningKind
Source§impl From<WarningKind> for WarningKind
impl From<WarningKind> for WarningKind
Source§fn from(warn_kind: WarningKind) -> Self
fn from(warn_kind: WarningKind) -> Self
Converts to this type from the input type.
Source§impl From<WarningKind> for WarningKind
impl From<WarningKind> for WarningKind
Source§fn from(warn_kind: WarningKind) -> Self
fn from(warn_kind: WarningKind) -> Self
Converts to this type from the input type.
Source§impl From<WarningKind> for WarningKind
impl From<WarningKind> for WarningKind
Source§fn from(warn_kind: WarningKind) -> Self
fn from(warn_kind: WarningKind) -> Self
Converts to this type from the input type.
Source§impl From<WarningKind> for WarningKind
impl From<WarningKind> for WarningKind
Source§fn from(warn_kind: WarningKind) -> Self
fn from(warn_kind: WarningKind) -> Self
Converts to this type from the input type.
Source§impl From<WarningKind> for WarningKind
impl From<WarningKind> for WarningKind
Source§fn from(warn_kind: WarningKind) -> Self
fn from(warn_kind: WarningKind) -> Self
Converts to this type from the input type.
Source§impl From<WarningKind> for WarningKind
impl From<WarningKind> for WarningKind
Source§fn from(warn_kind: WarningKind) -> Self
fn from(warn_kind: WarningKind) -> Self
Converts to this type from the input type.
Source§impl From<WarningKind> for WarningKind
impl From<WarningKind> for WarningKind
Source§fn from(warn_kind: WarningKind) -> Self
fn from(warn_kind: WarningKind) -> Self
Converts to this type from the input type.
Source§impl From<WarningKind> for WarningKind
impl From<WarningKind> for WarningKind
Source§fn from(warn_kind: WarningKind) -> Self
fn from(warn_kind: WarningKind) -> Self
Converts to this type from the input type.
Source§impl From<WarningKind> for WarningKind
impl From<WarningKind> for WarningKind
Source§fn from(warn_kind: WarningKind) -> Self
fn from(warn_kind: WarningKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WarningKind
impl RefUnwindSafe for WarningKind
impl Send for WarningKind
impl Sync for WarningKind
impl Unpin for WarningKind
impl UnwindSafe for WarningKind
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