pub struct EnterService {
pub priority: i32,
pub high_voltage: Decimal,
pub low_voltage: Decimal,
pub high_freq: Decimal,
pub low_freq: Decimal,
pub delay: Option<Decimal>,
pub random_delay: Option<Decimal>,
pub ramp_rate: Option<Decimal>,
pub custom_data: Option<CustomData>,
}Expand description
The OCPP 2.1 EnterService data type.
Fields§
§priority: i32Priority of setting (0=highest)
high_voltage: DecimalEnter service voltage high
low_voltage: DecimalEnter service voltage low
high_freq: DecimalEnter service frequency high
low_freq: DecimalEnter service frequency low
delay: Option<Decimal>Enter service delay
random_delay: Option<Decimal>Enter service randomized delay
ramp_rate: Option<Decimal>Enter service ramp rate in seconds
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl EnterService
impl EnterService
Sourcepub fn new(
priority: i32,
high_voltage: impl Into<Decimal>,
low_voltage: impl Into<Decimal>,
high_freq: impl Into<Decimal>,
low_freq: impl Into<Decimal>,
) -> Self
pub fn new( priority: i32, high_voltage: impl Into<Decimal>, low_voltage: impl Into<Decimal>, high_freq: impl Into<Decimal>, low_freq: impl Into<Decimal>, ) -> Self
Creates a EnterService from its required fields.
Sourcepub fn with_delay(self, value: impl Into<Decimal>) -> Self
pub fn with_delay(self, value: impl Into<Decimal>) -> Self
Sets the optional delay field.
Sourcepub fn with_random_delay(self, value: impl Into<Decimal>) -> Self
pub fn with_random_delay(self, value: impl Into<Decimal>) -> Self
Sets the optional randomDelay field.
Sourcepub fn with_ramp_rate(self, value: impl Into<Decimal>) -> Self
pub fn with_ramp_rate(self, value: impl Into<Decimal>) -> Self
Sets the optional rampRate field.
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 EnterService
impl Clone for EnterService
Source§impl Debug for EnterService
impl Debug for EnterService
Source§impl<'de> Deserialize<'de> for EnterService
impl<'de> Deserialize<'de> for EnterService
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 EnterService
impl PartialEq for EnterService
Source§impl Serialize for EnterService
impl Serialize for EnterService
impl StructuralPartialEq for EnterService
Source§impl Validate for EnterService
impl Validate for EnterService
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 Forget for EnterService
impl Freeze for EnterService
impl Move for EnterService
impl RefUnwindSafe for EnterService
impl Send for EnterService
impl Sync for EnterService
impl Unpin for EnterService
impl UnsafeUnpin for EnterService
impl UnwindSafe for EnterService
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