pub struct Flight {
pub invoice_level_adjustments: Option<Vec<Adjustment>>,
pub itinerary_locator: Option<String>,
pub tickets: Vec<FlightTicket>,
}Expand description
Flight
JSON schema
{
"title": "Flight",
"type": "object",
"required": [
"tickets"
],
"properties": {
"invoice_level_adjustments": {
"oneOf": [
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/adjustment"
}
}
]
},
"itinerary_locator": {
"type": [
"null",
"string"
]
},
"tickets": {
"type": "array",
"items": {
"$ref": "#/$defs/flight_ticket"
},
"minItems": 1
}
},
"additionalProperties": false
}Fields§
§invoice_level_adjustments: Option<Vec<Adjustment>>§itinerary_locator: Option<String>§tickets: Vec<FlightTicket>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Flight
impl<'de> Deserialize<'de> for Flight
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
Auto Trait Implementations§
impl Freeze for Flight
impl RefUnwindSafe for Flight
impl Send for Flight
impl Sync for Flight
impl Unpin for Flight
impl UnsafeUnpin for Flight
impl UnwindSafe for Flight
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