ocpi-tariffs 0.55.0

OCPI tariff calculations
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Test support for a built CDR.

use super::Cdr;

impl<'buf> Cdr<'buf> {
    /// Return the JSON text the CDR was checked and built from. Tests pass it to
    /// `unwrap_report`, whose panic highlights the error that stopped pricing in that text.
    pub(crate) fn as_json_str(&self) -> &'buf str {
        self.as_checked().as_json_str()
    }
}