pub struct ValidationResult {
pub meta: Bo4eMeta,
pub validation_timestamp: Option<DateTime<Utc>>,
pub is_valid: Option<bool>,
pub validation_rule_id: Option<String>,
pub validation_rule_name: Option<String>,
pub error_code: Option<String>,
pub error_message: Option<String>,
pub severity: Option<String>,
}Expand description
Result of a validation check on measured data.
German: Validierungsergebnis
§Example
use bo4e_core::com::ValidationResult;
use chrono::Utc;
let result = ValidationResult {
validation_timestamp: Some(Utc::now()),
is_valid: Some(true),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
validation_timestamp: Option<DateTime<Utc>>Timestamp of validation (Validierungszeitpunkt)
is_valid: Option<bool>Whether validation passed (Gültig)
validation_rule_id: Option<String>Validation rule ID (Validierungsregel)
validation_rule_name: Option<String>Validation rule name (Regelbezeichnung)
error_code: Option<String>Error code if validation failed (Fehlercode)
error_message: Option<String>Error message (Fehlermeldung)
severity: Option<String>Severity level (Schweregrad)
Trait Implementations§
Source§impl Bo4eObject for ValidationResult
impl Bo4eObject for ValidationResult
Source§fn type_name_german() -> &'static str
fn type_name_german() -> &'static str
Returns the German type name as used in the
_typ field. Read moreSource§fn type_name_english() -> &'static str
fn type_name_english() -> &'static str
Returns the English type name. Read more
Source§impl Clone for ValidationResult
impl Clone for ValidationResult
Source§fn clone(&self) -> ValidationResult
fn clone(&self) -> ValidationResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValidationResult
impl Debug for ValidationResult
Source§impl Default for ValidationResult
impl Default for ValidationResult
Source§fn default() -> ValidationResult
fn default() -> ValidationResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ValidationResult
impl<'de> Deserialize<'de> for ValidationResult
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ValidationResult
impl PartialEq for ValidationResult
Source§impl Serialize for ValidationResult
impl Serialize for ValidationResult
impl StructuralPartialEq for ValidationResult
Auto Trait Implementations§
impl Freeze for ValidationResult
impl RefUnwindSafe for ValidationResult
impl Send for ValidationResult
impl Sync for ValidationResult
impl Unpin for ValidationResult
impl UnwindSafe for ValidationResult
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