#[non_exhaustive]pub struct ProductOrderItemRef {
pub product_order_id: Option<String>,
pub product_order_item_id: Option<String>,
pub product_order_href: Option<String>,
pub referred_type: Option<String>,
pub at_type: String,
pub at_base_type: Option<String>,
pub at_schema_location: Option<String>,
pub extensions: Extensions,
}order only.Expand description
A line of a product order, addressed from outside it.
See QuoteItemRef for why this is a struct rather than a Ref<T>.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.product_order_id: Option<String>Identifier of the order.
product_order_item_id: Option<String>Identifier of the line within the order.
product_order_href: Option<String>URI of the order.
The v5 schema spells this member with a leading capital, unlike every other member in the document. It is reproduced verbatim because that is what a conformant server sends.
referred_type: Option<String>The concrete class of the order.
at_type: StringThe @type discriminator naming this entity’s class.
Empty when the payload declared none — TMF630 v5 marks it
required, but servers omit it and so do TM Forum’s own examples.
An absent discriminator stays absent, so relaying a payload does
not silently add a member to it; anything this crate builds
carries the class name. Read it through
type_name, which resolves the empty case.
at_base_type: Option<String>The @baseType, naming the supertype where this class is sub-typed.
at_schema_location: Option<String>A URI to a JSON-Schema file defining additional attributes.
extensions: ExtensionsMembers not covered by the typed model, kept in document order.
See the crate documentation for the round-trip guarantee this underwrites.
Implementations§
Source§impl ProductOrderItemRef
impl ProductOrderItemRef
Sourcepub fn builder() -> ProductOrderItemRefBuilder
pub fn builder() -> ProductOrderItemRefBuilder
Create an instance of ProductOrderItemRef using the builder syntax
Trait Implementations§
Source§impl Clone for ProductOrderItemRef
impl Clone for ProductOrderItemRef
Source§impl Debug for ProductOrderItemRef
impl Debug for ProductOrderItemRef
Source§impl Default for ProductOrderItemRef
impl Default for ProductOrderItemRef
Source§impl<'de> Deserialize<'de> for ProductOrderItemRef
impl<'de> Deserialize<'de> for ProductOrderItemRef
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>,
Source§impl JsonSchema for ProductOrderItemRef
impl JsonSchema for ProductOrderItemRef
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more