pub struct TransactionLimit<CustomDataType = NoCustomData> {
pub custom_data: Option<CustomDataType>,
pub max_cost: Option<f64>,
pub max_energy: Option<f64>,
pub max_so_c: Option<i64>,
pub max_time: Option<i64>,
}Expand description
Cost, energy, time or SoC limit for a transaction.
Fields§
§custom_data: Option<CustomDataType>§max_cost: Option<f64>Maximum allowed cost of transaction in currency of tariff.
max_energy: Option<f64>Maximum allowed energy in Wh to charge in transaction.
max_so_c: Option<i64>Maximum State of Charge of EV in percentage.
max_time: Option<i64>Maximum duration of transaction in seconds from start to end.
Trait Implementations§
Source§impl<CustomDataType: Clone> Clone for TransactionLimit<CustomDataType>
impl<CustomDataType: Clone> Clone for TransactionLimit<CustomDataType>
Source§fn clone(&self) -> TransactionLimit<CustomDataType>
fn clone(&self) -> TransactionLimit<CustomDataType>
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<CustomDataType: Debug> Debug for TransactionLimit<CustomDataType>
impl<CustomDataType: Debug> Debug for TransactionLimit<CustomDataType>
Source§impl<'de, CustomDataType> Deserialize<'de> for TransactionLimit<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for TransactionLimit<CustomDataType>where
CustomDataType: Deserialize<'de>,
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<CustomDataType: PartialEq> PartialEq for TransactionLimit<CustomDataType>
impl<CustomDataType: PartialEq> PartialEq for TransactionLimit<CustomDataType>
Source§impl<CustomDataType> Serialize for TransactionLimit<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType> Serialize for TransactionLimit<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType: PartialEq> StructuralPartialEq for TransactionLimit<CustomDataType>
Source§impl<CustomDataType> Validate for TransactionLimit<CustomDataType>
Available on crate feature validate only.
impl<CustomDataType> Validate for TransactionLimit<CustomDataType>
Available on crate feature
validate only.Auto Trait Implementations§
impl<CustomDataType> Freeze for TransactionLimit<CustomDataType>where
CustomDataType: Freeze,
impl<CustomDataType> RefUnwindSafe for TransactionLimit<CustomDataType>where
CustomDataType: RefUnwindSafe,
impl<CustomDataType> Send for TransactionLimit<CustomDataType>where
CustomDataType: Send,
impl<CustomDataType> Sync for TransactionLimit<CustomDataType>where
CustomDataType: Sync,
impl<CustomDataType> Unpin for TransactionLimit<CustomDataType>where
CustomDataType: Unpin,
impl<CustomDataType> UnsafeUnpin for TransactionLimit<CustomDataType>where
CustomDataType: UnsafeUnpin,
impl<CustomDataType> UnwindSafe for TransactionLimit<CustomDataType>where
CustomDataType: UnwindSafe,
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