pub struct HeaderThirdParty {
pub make_primary: bool,
pub merchant: Option<Org>,
pub relation: HeaderThirdPartyRelation,
}Expand description
HeaderThirdParty
JSON schema
{
"type": "object",
"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
}Fields§
§make_primary: boolDetermines whether the merchant or third party gets top billing on the receipt
merchant: Option<Org>§relation: HeaderThirdPartyRelationImplementations§
Source§impl HeaderThirdParty
impl HeaderThirdParty
pub fn builder() -> HeaderThirdParty
Trait Implementations§
Source§impl Clone for HeaderThirdParty
impl Clone for HeaderThirdParty
Source§fn clone(&self) -> HeaderThirdParty
fn clone(&self) -> HeaderThirdParty
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 HeaderThirdParty
impl Debug for HeaderThirdParty
Source§impl<'de> Deserialize<'de> for HeaderThirdParty
impl<'de> Deserialize<'de> for HeaderThirdParty
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 From<&HeaderThirdParty> for HeaderThirdParty
impl From<&HeaderThirdParty> for HeaderThirdParty
Source§fn from(value: &HeaderThirdParty) -> Self
fn from(value: &HeaderThirdParty) -> Self
Converts to this type from the input type.
Source§impl From<HeaderThirdParty> for HeaderThirdParty
impl From<HeaderThirdParty> for HeaderThirdParty
Source§fn from(value: HeaderThirdParty) -> Self
fn from(value: HeaderThirdParty) -> Self
Converts to this type from the input type.
Source§impl Serialize for HeaderThirdParty
impl Serialize for HeaderThirdParty
Source§impl TryFrom<HeaderThirdParty> for HeaderThirdParty
impl TryFrom<HeaderThirdParty> for HeaderThirdParty
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: HeaderThirdParty) -> Result<Self, ConversionError>
fn try_from(value: HeaderThirdParty) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for HeaderThirdParty
impl RefUnwindSafe for HeaderThirdParty
impl Send for HeaderThirdParty
impl Sync for HeaderThirdParty
impl Unpin for HeaderThirdParty
impl UnsafeUnpin for HeaderThirdParty
impl UnwindSafe for HeaderThirdParty
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