pub enum WarningKind {
Show 16 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),
TotalCostClampedToMin,
TotalCostClampedToMax,
NoElements,
NotActive,
Number(WarningKind),
String(WarningKind),
Weekday(WarningKind),
}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)
TotalCostClampedToMin
The given tariff has a min_price set and the total_cost fell below it.
TotalCostClampedToMax
The given tariff has a max_price set and the total_cost exceeded it.
NoElements
The tariff has no Elements.
NotActive
The tariff is not active during the Cdr::start_date_time.
Number(WarningKind)
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