pub struct ConstantStreamData {
pub id: i32,
pub params: PeriodicEventStreamParams,
pub variable_monitoring_id: i32,
pub custom_data: Option<CustomData>,
}Expand description
The OCPP 2.1 ConstantStreamData data type.
Fields§
§id: i32Uniquely identifies the stream
params: PeriodicEventStreamParamsThe params member.
variable_monitoring_id: i32Id of monitor used to report his event. It can be a preconfigured or hardwired monitor.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl ConstantStreamData
impl ConstantStreamData
Sourcepub fn new(
id: i32,
params: PeriodicEventStreamParams,
variable_monitoring_id: i32,
) -> Self
pub fn new( id: i32, params: PeriodicEventStreamParams, variable_monitoring_id: i32, ) -> Self
Creates a ConstantStreamData from its required fields.
Sourcepub fn with_custom_data(self, value: CustomData) -> Self
pub fn with_custom_data(self, value: CustomData) -> Self
Sets the optional customData field.
Trait Implementations§
Source§impl Clone for ConstantStreamData
impl Clone for ConstantStreamData
Source§fn clone(&self) -> ConstantStreamData
fn clone(&self) -> ConstantStreamData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConstantStreamData
impl Debug for ConstantStreamData
Source§impl<'de> Deserialize<'de> for ConstantStreamData
impl<'de> Deserialize<'de> for ConstantStreamData
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 ConstantStreamData
impl PartialEq for ConstantStreamData
Source§impl Serialize for ConstantStreamData
impl Serialize for ConstantStreamData
impl StructuralPartialEq for ConstantStreamData
Source§impl Validate for ConstantStreamData
impl Validate for ConstantStreamData
Source§fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
Appends this value’s violations to
out, relative to path.Auto Trait Implementations§
impl Freeze for ConstantStreamData
impl RefUnwindSafe for ConstantStreamData
impl Send for ConstantStreamData
impl Sync for ConstantStreamData
impl Unpin for ConstantStreamData
impl UnsafeUnpin for ConstantStreamData
impl UnwindSafe for ConstantStreamData
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