pub struct EnterServiceGet {
pub enter_service: EnterService,
pub id: String,
pub custom_data: Option<CustomData>,
}Expand description
The OCPP 2.1 EnterServiceGet data type.
Fields§
§enter_service: EnterServiceThe enterService member.
id: StringId of setting
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl EnterServiceGet
impl EnterServiceGet
Sourcepub fn new(enter_service: EnterService, id: impl Into<String>) -> Self
pub fn new(enter_service: EnterService, id: impl Into<String>) -> Self
Creates a EnterServiceGet 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 EnterServiceGet
impl Clone for EnterServiceGet
Source§impl Debug for EnterServiceGet
impl Debug for EnterServiceGet
Source§impl<'de> Deserialize<'de> for EnterServiceGet
impl<'de> Deserialize<'de> for EnterServiceGet
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 EnterServiceGet
impl PartialEq for EnterServiceGet
Source§impl Serialize for EnterServiceGet
impl Serialize for EnterServiceGet
impl StructuralPartialEq for EnterServiceGet
Source§impl Validate for EnterServiceGet
impl Validate for EnterServiceGet
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 EnterServiceGet
impl Freeze for EnterServiceGet
impl RefUnwindSafe for EnterServiceGet
impl Send for EnterServiceGet
impl Sync for EnterServiceGet
impl Unpin for EnterServiceGet
impl UnsafeUnpin for EnterServiceGet
impl UnwindSafe for EnterServiceGet
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