pub struct GetTariffsResponse {
pub status: TariffGetStatus,
pub status_info: Option<StatusInfo>,
pub tariff_assignments: Option<Vec<TariffAssignment>>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · I — Tariff and Cost · CSMS → Charging Station · CALL.
Fields§
§status: TariffGetStatusThe status member.
status_info: Option<StatusInfo>The statusInfo member.
tariff_assignments: Option<Vec<TariffAssignment>>The tariffAssignments member.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl GetTariffsResponse
impl GetTariffsResponse
Sourcepub fn new(status: TariffGetStatus) -> Self
pub fn new(status: TariffGetStatus) -> Self
Creates a GetTariffsResponse from its required fields.
Sourcepub fn with_status_info(self, value: StatusInfo) -> Self
pub fn with_status_info(self, value: StatusInfo) -> Self
Sets the optional statusInfo field.
Sourcepub fn with_tariff_assignments(self, value: Vec<TariffAssignment>) -> Self
pub fn with_tariff_assignments(self, value: Vec<TariffAssignment>) -> Self
Sets the optional tariffAssignments 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 GetTariffsResponse
impl Clone for GetTariffsResponse
Source§impl Debug for GetTariffsResponse
impl Debug for GetTariffsResponse
Source§impl<'de> Deserialize<'de> for GetTariffsResponse
impl<'de> Deserialize<'de> for GetTariffsResponse
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 GetTariffsResponse
impl PartialEq for GetTariffsResponse
impl Response for GetTariffsResponse
impl Sealed for GetTariffsResponse
Source§impl Serialize for GetTariffsResponse
impl Serialize for GetTariffsResponse
impl StructuralPartialEq for GetTariffsResponse
Source§impl Validate for GetTariffsResponse
impl Validate for GetTariffsResponse
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 GetTariffsResponse
impl Freeze for GetTariffsResponse
impl Move for GetTariffsResponse
impl RefUnwindSafe for GetTariffsResponse
impl Send for GetTariffsResponse
impl Sync for GetTariffsResponse
impl Unpin for GetTariffsResponse
impl UnsafeUnpin for GetTariffsResponse
impl UnwindSafe for GetTariffsResponse
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