pub struct Compliance {
pub requester_ip_address: Option<String>,
}Expand description
Compliance context for a request. Carries per-request compliance signals, such as the IP address of the individual (i.e., end-customer) that initiated the request.
This object is request-only — it is never echoed back in responses.
Inner fields are write-only.JSON schema
{
"description": "Compliance context for a request. Carries per-request compliance signals,\nsuch as the IP address of the individual (i.e., end-customer) that\ninitiated the request.\n\nThis object is request-only — it is never echoed back in responses.\nInner fields are write-only.\n",
"examples": [
{
"requesterIpAddress": "203.0.113.42"
}
],
"type": "object",
"properties": {
"requesterIpAddress": {
"description": "IPv4 or IPv6 address of the individual (i.e., end-customer) that\ninitiated this request. NOT the IP of the partner server making the\nAPI call.\n",
"writeOnly": true,
"examples": [
"203.0.113.42"
],
"type": "string"
}
}
}Fields§
§requester_ip_address: Option<String>IPv4 or IPv6 address of the individual (i.e., end-customer) that initiated this request. NOT the IP of the partner server making the API call.
Implementations§
Source§impl Compliance
impl Compliance
pub fn builder() -> Compliance
Trait Implementations§
Source§impl Clone for Compliance
impl Clone for Compliance
Source§impl Debug for Compliance
impl Debug for Compliance
Source§impl Default for Compliance
impl Default for Compliance
Source§impl<'de> Deserialize<'de> for Compliance
impl<'de> Deserialize<'de> for Compliance
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<&Compliance> for Compliance
impl From<&Compliance> for Compliance
Source§fn from(value: &Compliance) -> Self
fn from(value: &Compliance) -> Self
Converts to this type from the input type.
Source§impl From<Compliance> for Compliance
impl From<Compliance> for Compliance
Source§fn from(value: Compliance) -> Self
fn from(value: Compliance) -> Self
Converts to this type from the input type.
Source§impl Serialize for Compliance
impl Serialize for Compliance
Source§impl TryFrom<Compliance> for Compliance
impl TryFrom<Compliance> for Compliance
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: Compliance) -> Result<Self, ConversionError>
fn try_from(value: Compliance) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for Compliance
impl RefUnwindSafe for Compliance
impl Send for Compliance
impl Sync for Compliance
impl Unpin for Compliance
impl UnsafeUnpin for Compliance
impl UnwindSafe for Compliance
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