pub enum Warning {
Show 15 variants
Country(Warning),
Currency(Warning),
DateTime(Warning),
Decode(Warning),
Duration(Warning),
FieldInvalidValue {
value: String,
message: Cow<'static, str>,
},
Money(Warning),
ReservationElementSkipped,
TotalCostClampedToMin,
TotalCostClampedToMax,
NoElements,
NotActive,
Number(Warning),
String(Warning),
Rejected,
}Variants§
Country(Warning)
The CDR location is not a valid ISO 3166-1 alpha-3 code.
Currency(Warning)
DateTime(Warning)
Decode(Warning)
Duration(Warning)
FieldInvalidValue
A field in the tariff doesn’t have the expected value.
Fields
Money(Warning)
ReservationElementSkipped
A tariff element has a reservation restriction (RESERVATION or RESERVATION_EXPIRES).
Such elements apply only to reservation sessions, not to regular charging sessions. Because reservation pricing is not supported, the element is treated as permanently inactive.
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)
Rejected
A feature rejected the schema IR for a tariff object because a required field was
missing or invalid. The located cause is reported by the schema validation warnings.
(see warning::Rejected).
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 UnsafeUnpin 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
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> IntoCaveat for T
impl<T> IntoCaveat for T
Source§fn into_caveat<W>(self, warnings: Set<W>) -> Caveat<T, W>where
W: Warning,
fn into_caveat<W>(self, warnings: Set<W>) -> Caveat<T, W>where
W: Warning,
Caveat<T> by supplying a list of Warnings.Source§fn into_infallible_caveat(self) -> Caveat<Self, Infallible>
fn into_infallible_caveat(self) -> Caveat<Self, Infallible>
FromSchema is infallible a Caveat can be created using this method.