pub enum Warning {
Show 16 variants
Country(Warning),
Currency(Warning),
DateTime(Warning),
Decode(Warning),
Duration(Warning),
FieldInvalidType {
expected_type: ValueKind,
},
FieldInvalidValue {
value: String,
message: Cow<'static, str>,
},
FieldRequired {
field_name: Cow<'static, str>,
},
Money(Warning),
TotalCostClampedToMin,
TotalCostClampedToMax,
NoElements,
NotActive,
Number(Warning),
String(Warning),
Weekday(Warning),
}Variants§
Country(Warning)
The CDR location is not a valid ISO 3166-1 alpha-3 code.
Currency(Warning)
DateTime(Warning)
Decode(Warning)
Duration(Warning)
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(Warning)
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(Warning)
String(Warning)
Weekday(Warning)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Warning
impl RefUnwindSafe for Warning
impl Send for Warning
impl Sync for Warning
impl Unpin for Warning
impl UnwindSafe for Warning
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