pub struct Config {
pub allow_ordering: bool,
pub payment_type_id: Option<String>,
pub cdp: Option<String>,
pub auto_refresh: Option<bool>,
pub hydra_mode: Option<HydraMode>,
pub hydra_key: Option<PathBuf>,
pub hydra_page: Option<String>,
pub user_agent: Option<String>,
pub phone: Option<String>,
pub cache: CacheConfig,
}Fields§
§allow_ordering: bool§payment_type_id: Option<String>§cdp: Option<String>§auto_refresh: Option<bool>§hydra_mode: Option<HydraMode>§hydra_key: Option<PathBuf>Path to the hydra signing key (PEM). Default <config dir>/hydra-key.pem.
hydra_page: Option<String>Page the CDP hydra minter opens. Must be a food.grab.com page that makes a hydra-protected API call.
user_agent: Option<String>Override the User-Agent sent to Grab (default: the browser’s, saved at import time).
phone: Option<String>Default phone for grab auth login (international form, +63…).
Validated on load; only ever printed masked.
cache: CacheConfig[cache]: response cache switch and per-kind TTLs.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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
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