shopify_client/common/
mod.rs1pub mod gid;
2pub mod http;
3pub mod query_filter;
4pub mod types;
5pub mod utils;
6
7use std::sync::Arc;
8
9use crate::common::types::RequestCallbacks;
10
11#[derive(Clone)]
12pub struct ServiceContext {
13 pub shop_url: Arc<String>,
14 pub version: Arc<String>,
15 pub access_token: Arc<String>,
16 pub callbacks: Arc<RequestCallbacks>,
17}
18
19impl ServiceContext {
20 pub fn new(
21 shop_url: Arc<String>,
22 version: Arc<String>,
23 access_token: Arc<String>,
24 callbacks: Arc<RequestCallbacks>,
25 ) -> Self {
26 Self {
27 shop_url,
28 version,
29 access_token,
30 callbacks,
31 }
32 }
33}