pub struct PushConfig {
pub endpoint: String,
pub access_token: Secret<String>,
pub batch_size: usize,
pub request_timeout: Duration,
}Expand description
Deserializable push configuration for a product’s config section.
Push is opt-in, so this does not live in baukit_config::BaukitConfig.
Products embed it in their own product config, which puts environment
overrides on the usual nested path, for example ORDERS__PUSH__BATCH_SIZE.
request_timeout_ms is read in milliseconds and exposed as a Duration.
Fields§
§endpoint: StringFull push send endpoint URL.
access_token: Secret<String>Provider access token. Debug and display formatting redact its value.
Expo only requires this when the project enforces push security.
batch_size: usizeNumber of notifications sent in one upstream request.
request_timeout: DurationTimeout applied independently to the ticket and receipt requests.
Trait Implementations§
Source§impl Clone for PushConfig
impl Clone for PushConfig
Source§impl Debug for PushConfig
impl Debug for PushConfig
Source§impl Default for PushConfig
impl Default for PushConfig
Source§impl<'de> Deserialize<'de> for PushConfigwhere
PushConfig: Default,
impl<'de> Deserialize<'de> for PushConfigwhere
PushConfig: Default,
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
Source§impl Validate for PushConfig
impl Validate for PushConfig
Auto Trait Implementations§
impl Freeze for PushConfig
impl RefUnwindSafe for PushConfig
impl Send for PushConfig
impl Sync for PushConfig
impl Unpin for PushConfig
impl UnsafeUnpin for PushConfig
impl UnwindSafe for PushConfig
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