pub struct ProfileData {
pub meta: Bo4eMeta,
pub profile_type: Option<String>,
pub timestamp: Option<DateTime<Utc>>,
pub value: Option<f64>,
pub unit: Option<Unit>,
pub profile_name: Option<String>,
pub profile_version: Option<String>,
pub temperature_zone: Option<String>,
}Expand description
Profile data for standard load profiles or individual consumption profiles.
German: Profildaten
§Example
use bo4e_core::com::ProfileData;
use chrono::Utc;
let profile = ProfileData {
profile_type: Some("H0".to_string()),
timestamp: Some(Utc::now()),
value: Some(0.000125),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
profile_type: Option<String>Profile type/identifier (Profiltyp)
timestamp: Option<DateTime<Utc>>Timestamp of the profile value (Zeitpunkt)
value: Option<f64>Profile value (Profilwert)
unit: Option<Unit>Unit of the profile value (Einheit)
profile_name: Option<String>Profile name (Profilname)
profile_version: Option<String>Profile version (Profilversion)
temperature_zone: Option<String>Temperature zone (Temperaturzone)
Trait Implementations§
Source§impl Bo4eObject for ProfileData
impl Bo4eObject for ProfileData
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 ProfileData
impl Clone for ProfileData
Source§fn clone(&self) -> ProfileData
fn clone(&self) -> ProfileData
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 ProfileData
impl Debug for ProfileData
Source§impl Default for ProfileData
impl Default for ProfileData
Source§fn default() -> ProfileData
fn default() -> ProfileData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProfileData
impl<'de> Deserialize<'de> for ProfileData
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 ProfileData
impl PartialEq for ProfileData
Source§impl Serialize for ProfileData
impl Serialize for ProfileData
impl StructuralPartialEq for ProfileData
Auto Trait Implementations§
impl Freeze for ProfileData
impl RefUnwindSafe for ProfileData
impl Send for ProfileData
impl Sync for ProfileData
impl Unpin for ProfileData
impl UnsafeUnpin for ProfileData
impl UnwindSafe for ProfileData
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