HubspotProxyConfig (src/crm.rs)

hyperswitch · crates/external_services/src/crm.rs · rust · Apache-2.0
crm

Handles HubSpot CRM configuration and request building for form submissions.

// Source: https://github.com/juspay/hyperswitch | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
use std::sync::Arc;

use common_utils::{
    errors::CustomResult,
    ext_traits::ConfigExt,
    request::{Method, Request, RequestBuilder, RequestContent},
};
use error_stack::ResultExt;
use http::header;
use hyperswitch_interfaces::{
    crm::{CrmInterface, CrmPayload},
    errors::HttpClientError,
    types::Proxy,
};
use router_env::logger;

use crate::{http_client, hubspot_proxy::HubspotRequest};

/// Hubspot Crm configuration
#[derive(Debug, Clone, serde::Deserialize)]
pub struct HubspotProxyConfig {
    /// The ID of the Hubspot form to be submitted.
    pub form_id: String,

 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key