pub struct FixedVarGet {
pub fixed_var: FixedVar,
pub id: String,
pub is_default: bool,
pub is_superseded: bool,
pub custom_data: Option<CustomData>,
}Expand description
The OCPP 2.1 FixedVarGet data type.
Fields§
§fixed_var: FixedVarThe fixedVar member.
id: StringId of setting
is_default: boolTrue if setting is a default control.
is_superseded: boolTrue if this setting is superseded by a lower priority setting
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl FixedVarGet
impl FixedVarGet
Sourcepub fn new(
fixed_var: FixedVar,
id: impl Into<String>,
is_default: bool,
is_superseded: bool,
) -> Self
pub fn new( fixed_var: FixedVar, id: impl Into<String>, is_default: bool, is_superseded: bool, ) -> Self
Creates a FixedVarGet 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 FixedVarGet
impl Clone for FixedVarGet
Source§impl Debug for FixedVarGet
impl Debug for FixedVarGet
Source§impl<'de> Deserialize<'de> for FixedVarGet
impl<'de> Deserialize<'de> for FixedVarGet
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 FixedVarGet
impl PartialEq for FixedVarGet
Source§impl Serialize for FixedVarGet
impl Serialize for FixedVarGet
impl StructuralPartialEq for FixedVarGet
Source§impl Validate for FixedVarGet
impl Validate for FixedVarGet
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 FixedVarGet
impl Freeze for FixedVarGet
impl Move for FixedVarGet
impl RefUnwindSafe for FixedVarGet
impl Send for FixedVarGet
impl Sync for FixedVarGet
impl Unpin for FixedVarGet
impl UnsafeUnpin for FixedVarGet
impl UnwindSafe for FixedVarGet
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