pub struct PushNotificationConfig {
pub enabled: bool,
pub provider: PushProvider,
pub enable_encryption: bool,
pub enable_number_matching: bool,
pub number_match_length: usize,
pub challenge_timeout_secs: i64,
pub include_recent_activity: bool,
pub max_recent_activities: usize,
pub never_include_otp: bool,
pub require_client_cert: bool,
}Expand description
Push notification configuration
Fields§
§enabled: boolEnable push notifications
provider: PushProviderProvider
enable_encryption: boolEnable payload encryption
enable_number_matching: boolEnable number matching
number_match_length: usizeNumber match code length (3-digit default)
challenge_timeout_secs: i64Challenge timeout (seconds)
include_recent_activity: boolInclude recent activity
max_recent_activities: usizeMax recent activities to include
never_include_otp: boolNever include OTP in payload
require_client_cert: boolRequire TLS client certificate
Trait Implementations§
Source§impl Clone for PushNotificationConfig
impl Clone for PushNotificationConfig
Source§fn clone(&self) -> PushNotificationConfig
fn clone(&self) -> PushNotificationConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PushNotificationConfig
impl Debug for PushNotificationConfig
Source§impl Default for PushNotificationConfig
impl Default for PushNotificationConfig
Source§impl<'de> Deserialize<'de> for PushNotificationConfig
impl<'de> Deserialize<'de> for PushNotificationConfig
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 PushNotificationConfig
impl RefUnwindSafe for PushNotificationConfig
impl Send for PushNotificationConfig
impl Sync for PushNotificationConfig
impl Unpin for PushNotificationConfig
impl UnsafeUnpin for PushNotificationConfig
impl UnwindSafe for PushNotificationConfig
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