pub struct PriceRuleStack<CustomDataType = NoCustomData> {
pub custom_data: Option<CustomDataType>,
pub duration: i64,
pub price_rule: Vec<PriceRule<CustomDataType>, 8usize>,
}Expand description
Part of ISO 15118-20 price schedule.
Fields§
§custom_data: Option<CustomDataType>§duration: i64Duration of the stack of price rules. he amount of seconds that define the duration of the given PriceRule(s).
price_rule: Vec<PriceRule<CustomDataType>, 8usize>Trait Implementations§
Source§impl<CustomDataType: Clone> Clone for PriceRuleStack<CustomDataType>
impl<CustomDataType: Clone> Clone for PriceRuleStack<CustomDataType>
Source§fn clone(&self) -> PriceRuleStack<CustomDataType>
fn clone(&self) -> PriceRuleStack<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 PriceRuleStack<CustomDataType>
impl<CustomDataType: Debug> Debug for PriceRuleStack<CustomDataType>
Source§impl<'de, CustomDataType> Deserialize<'de> for PriceRuleStack<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for PriceRuleStack<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
impl<CustomDataType: Eq> Eq for PriceRuleStack<CustomDataType>
Source§impl<CustomDataType: PartialEq> PartialEq for PriceRuleStack<CustomDataType>
impl<CustomDataType: PartialEq> PartialEq for PriceRuleStack<CustomDataType>
Source§impl<CustomDataType> Serialize for PriceRuleStack<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType> Serialize for PriceRuleStack<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType: PartialEq> StructuralPartialEq for PriceRuleStack<CustomDataType>
Source§impl<CustomDataType> Validate for PriceRuleStack<CustomDataType>
Available on crate feature validate only.
impl<CustomDataType> Validate for PriceRuleStack<CustomDataType>
Available on crate feature
validate only.Auto Trait Implementations§
impl<CustomDataType> Freeze for PriceRuleStack<CustomDataType>where
CustomDataType: Freeze,
impl<CustomDataType> RefUnwindSafe for PriceRuleStack<CustomDataType>where
CustomDataType: RefUnwindSafe,
impl<CustomDataType> Send for PriceRuleStack<CustomDataType>where
CustomDataType: Send,
impl<CustomDataType> Sync for PriceRuleStack<CustomDataType>where
CustomDataType: Sync,
impl<CustomDataType> Unpin for PriceRuleStack<CustomDataType>where
CustomDataType: Unpin,
impl<CustomDataType> UnsafeUnpin for PriceRuleStack<CustomDataType>where
CustomDataType: UnsafeUnpin,
impl<CustomDataType> UnwindSafe for PriceRuleStack<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