pub struct Header {
pub booked_at: Option<i64>,
pub customer: Option<Customer>,
pub lifecycle_status: Option<LifecycleStatus>,
pub third_party: Option<HeaderThirdParty>,
pub trip: Option<Trip>,
}Expand description
Header
JSON schema
{
"title": "Header",
"type": "object",
"properties": {
"booked_at": {
"type": [
"integer",
"null"
],
"maximum": 4102462800.0,
"minimum": 0.0
},
"customer": {
"oneOf": [
{
"$ref": "#/$defs/customer"
},
{
"type": "null"
}
]
},
"lifecycle_status": {
"oneOf": [
{
"type": "null"
},
{
"title": "LifecycleStatus",
"type": "string",
"enum": [
"active",
"canceled",
"refunded"
]
}
]
},
"third_party": {
"type": [
"object",
"null"
],
"required": [
"make_primary",
"relation"
],
"properties": {
"make_primary": {
"description": "Determines whether the merchant or third party gets top billing on the receipt",
"type": "boolean"
},
"merchant": {
"oneOf": [
{
"$ref": "#/$defs/org"
},
{
"type": "null"
}
]
},
"relation": {
"type": "string",
"enum": [
"bnpl",
"delivery_service",
"marketplace",
"payment_processor",
"platform",
"point_of_sale"
]
}
},
"additionalProperties": false
},
"trip": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/$defs/trip"
}
]
}
},
"additionalProperties": false
}Fields§
§booked_at: Option<i64>§customer: Option<Customer>§lifecycle_status: Option<LifecycleStatus>§third_party: Option<HeaderThirdParty>§trip: Option<Trip>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Header
impl<'de> Deserialize<'de> for Header
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 Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnsafeUnpin for Header
impl UnwindSafe for Header
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