Docs: Correct default value for silent field

- Updated comments to reflect that the default value for `silent` is
  `null`, not `false`.
This commit is contained in:
Hector Candelaria 2024-08-21 21:28:52 -04:00
parent 9cb0e386aa
commit 4ff32e7dce

View file

@ -276,7 +276,7 @@ pub struct UseWebNotificationOptions {
renotify: bool, renotify: bool,
/// A boolean value specifying whether the notification should be silent, regardless of the device settings. /// A boolean value specifying whether the notification should be silent, regardless of the device settings.
/// The default is `false`, which means the notification is not silent. If `true`, then the notification will be silent. /// The default is `null`, which means the notification is not silent. If `true`, then the notification will be silent.
#[builder(into)] #[builder(into)]
silent: Option<bool>, silent: Option<bool>,
@ -411,7 +411,7 @@ pub struct ShowOptions {
renotify: Option<bool>, renotify: Option<bool>,
/// A boolean value specifying whether the notification should be silent, regardless of the device settings. /// A boolean value specifying whether the notification should be silent, regardless of the device settings.
/// The default is `false`, which means the notification is not silent. If `true`, then the notification will be silent. /// The default is `null`, which means the notification is not silent. If `true`, then the notification will be silent.
#[builder(into)] #[builder(into)]
silent: Option<bool>, silent: Option<bool>,