pub struct SetMonitoringLevelRequest<CustomDataType = NoCustomData> {
pub custom_data: Option<CustomDataType>,
pub severity: i64,
}Fields§
§custom_data: Option<CustomDataType>§severity: i64The Charging Station SHALL only report events with a severity number lower than or equal to this severity. The severity range is 0-9, with 0 as the highest and 9 as the lowest severity level.
The severity levels have the following meaning: + 0-Danger + Indicates lives are potentially in danger. Urgent attention is needed and action should be taken immediately. + 1-Hardware Failure + Indicates that the Charging Station is unable to continue regular operations due to Hardware issues. Action is required. + 2-System Failure + Indicates that the Charging Station is unable to continue regular operations due to software or minor hardware issues. Action is required. + 3-Critical + Indicates a critical error. Action is required. + 4-Error + Indicates a non-urgent error. Action is required. + 5-Alert + Indicates an alert event. Default severity for any type of monitoring event. + 6-Warning + Indicates a warning event. Action may be required. + 7-Notice + Indicates an unusual event. No immediate action is required. + 8-Informational + Indicates a regular operational event. May be used for reporting, measuring throughput, etc. No action is required. + 9-Debug + Indicates information useful to developers for debugging, not useful during operations.
Trait Implementations§
Source§impl<CustomDataType> Action for SetMonitoringLevelRequest<CustomDataType>
impl<CustomDataType> Action for SetMonitoringLevelRequest<CustomDataType>
const ACTION: &'static str = "SetMonitoringLevel"
Source§fn to_json_slice<'buf>(&self, buf: &'buf mut [u8]) -> Result<&'buf [u8], Error>where
Self: Serialize,
fn to_json_slice<'buf>(&self, buf: &'buf mut [u8]) -> Result<&'buf [u8], Error>where
Self: Serialize,
buf, returning the written
slice. No allocation: the caller owns and sizes the buffer, same as
every other bounded type in this crate.Source§fn to_json_str<'buf>(&self, buf: &'buf mut [u8]) -> Result<&'buf str, Error>where
Self: Serialize,
fn to_json_str<'buf>(&self, buf: &'buf mut [u8]) -> Result<&'buf str, Error>where
Self: Serialize,
Action::to_json_slice, but returns the written bytes as
&str. JSON emitted by serde-json-core is always valid UTF-8.Source§fn from_json_slice(data: &[u8]) -> Result<Self, Error>where
Self: Sized + DeserializeOwned,
fn from_json_slice(data: &[u8]) -> Result<Self, Error>where
Self: Sized + DeserializeOwned,
data only transiently: Self owns everything via
heapless collections, so nothing outlives this call.Source§fn from_json_str(data: &str) -> Result<Self, Error>where
Self: Sized + DeserializeOwned,
fn from_json_str(data: &str) -> Result<Self, Error>where
Self: Sized + DeserializeOwned,
Action::from_json_slice, but takes a &str instead of
raw bytes (skipping the UTF-8 check from_json_slice would
otherwise need, since &str already guarantees it).Source§impl<CustomDataType: Clone> Clone for SetMonitoringLevelRequest<CustomDataType>
impl<CustomDataType: Clone> Clone for SetMonitoringLevelRequest<CustomDataType>
Source§fn clone(&self) -> SetMonitoringLevelRequest<CustomDataType>
fn clone(&self) -> SetMonitoringLevelRequest<CustomDataType>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<CustomDataType: Debug> Debug for SetMonitoringLevelRequest<CustomDataType>
impl<CustomDataType: Debug> Debug for SetMonitoringLevelRequest<CustomDataType>
Source§impl<'de, CustomDataType> Deserialize<'de> for SetMonitoringLevelRequest<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for SetMonitoringLevelRequest<CustomDataType>where
CustomDataType: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl<CustomDataType: Eq> Eq for SetMonitoringLevelRequest<CustomDataType>
Source§impl<CustomDataType: PartialEq> PartialEq for SetMonitoringLevelRequest<CustomDataType>
impl<CustomDataType: PartialEq> PartialEq for SetMonitoringLevelRequest<CustomDataType>
Source§impl<CustomDataType> Serialize for SetMonitoringLevelRequest<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType> Serialize for SetMonitoringLevelRequest<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType: PartialEq> StructuralPartialEq for SetMonitoringLevelRequest<CustomDataType>
Source§impl<CustomDataType> Validate for SetMonitoringLevelRequest<CustomDataType>
Available on crate feature validate only.
impl<CustomDataType> Validate for SetMonitoringLevelRequest<CustomDataType>
validate only.