pub struct TariffElement {
pub price_components: Vec<PriceComponent>,
pub restrictions: Option<TariffRestrictions>,
pub extensions: Extensions,
}Available on crate feature
v2_1_1 only.Expand description
A group of PriceComponents that share a set of restrictions.
Spec: 2.1.1 §mod_tariffs_tariffelement_class
Fields§
§price_components: Vec<PriceComponent>How each priced dimension is priced. Cardinality +.
restrictions: Option<TariffRestrictions>Under which circumstances these Price Components apply.
extensions: ExtensionsUndocumented JSON fields, preserved verbatim.
Implementations§
Source§impl TariffElement
impl TariffElement
Sourcepub fn builder() -> TariffElementBuilder
pub fn builder() -> TariffElementBuilder
Create an instance of TariffElement using the builder syntax
Trait Implementations§
Source§impl Clone for TariffElement
impl Clone for TariffElement
Source§fn clone(&self) -> TariffElement
fn clone(&self) -> TariffElement
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 Debug for TariffElement
impl Debug for TariffElement
Source§impl<'de> Deserialize<'de> for TariffElement
impl<'de> Deserialize<'de> for TariffElement
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 JsonSchema for TariffElement
impl JsonSchema for TariffElement
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for TariffElement
impl PartialEq for TariffElement
Source§impl Serialize for TariffElement
impl Serialize for TariffElement
impl StructuralPartialEq for TariffElement
Source§impl Validate for TariffElement
impl Validate for TariffElement
Auto Trait Implementations§
impl Freeze for TariffElement
impl RefUnwindSafe for TariffElement
impl Send for TariffElement
impl Sync for TariffElement
impl Unpin for TariffElement
impl UnsafeUnpin for TariffElement
impl UnwindSafe for TariffElement
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