pub struct Receiver {
pub org_id: String,
pub secret: String,
pub endpoint_url: String,
pub address: String,
pub client_id: String,
}Expand description
Information about a receipt receiver.
Contains the endpoint and authentication details needed to deliver receipts to a receiver. The receiver’s endpoint URL and secret are used to construct webhook deliveries.
Fields§
§org_id: StringVersa Org ID of the receiver
secret: StringSecret key for HMAC authentication
endpoint_url: StringWebhook endpoint URL
address: StringDEPRECATED: use endpoint_url instead
client_id: StringDEPRECATED: use org_id instead
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Receiver
impl<'de> Deserialize<'de> for Receiver
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 Hash for Receiver
A receiver object is hashed by its client_id — the receiver address, secret, and org_id are considered constant and non-configurable.
It is possible for a receiver to change their address and rotate their secret with the registry,
in which case any Receiver records returned by said registry will contain the updated values.
Assembling hash sets of outdated and new receiver objects could result in unexpected behavior—do not do store or cache receivers.
impl Hash for Receiver
A receiver object is hashed by its client_id — the receiver address, secret, and org_id are considered constant and non-configurable. It is possible for a receiver to change their address and rotate their secret with the registry, in which case any Receiver records returned by said registry will contain the updated values. Assembling hash sets of outdated and new receiver objects could result in unexpected behavior—do not do store or cache receivers.