pub struct Config {
pub is_production: bool,
pub private_key: String,
pub client_secret: String,
pub client_id: String,
pub is_cloud_server: bool,
pub merchant_key: String,
pub channel_id: String,
}Fields§
§is_production: bool§private_key: String§client_secret: String§client_id: String§is_cloud_server: bool§merchant_key: String§channel_id: StringImplementations§
Source§impl Config
impl Config
pub const SNAP_DEV_BASE_URL: &'static str = "https://dev.nicepay.co.id/nicepay"
pub const SNAP_PROD_BASE_URL: &'static str = "https://www.nicepay.co.id/nicepay"
pub const SNAP_DEV_CLOUD_BASE_URL: &'static str = "https://dev-services.nicepay.co.id/nicepay"
pub const SNAP_PROD_CLOUD_BASE_URL: &'static str = "https://services.nicepay.co.id/nicepay"
pub fn new() -> Self
pub fn with_options(options: &HashMap<&str, String>) -> Self
pub fn get_configuration(&self) -> HashMap<String, String>
pub fn set_configuration(&mut self, options: &HashMap<&str, String>)
pub fn get_snap_api_base_url(&self) -> &'static str
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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